Skip to content

Commit

Permalink
Merge pull request #16 from threlte/cache
Browse files Browse the repository at this point in the history
Create threlte cache for every test
  • Loading branch information
michealparks authored Jun 8, 2024
2 parents 424ee07 + a54d0ce commit f1c5398
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-ways-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@threlte/test': patch
---

Create threlte cache for every test
4 changes: 3 additions & 1 deletion src/lib/Container.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { ACESFilmicToneMapping } from 'three'
import { interactivity } from '@threlte/extras'
import { mockAdvanceFn } from './advance'
import { getContext } from 'svelte'
import { getContext, setContext } from 'svelte'
import { writable } from 'svelte/store'
/** @type {HTMLCanvasElement} */
Expand Down Expand Up @@ -59,6 +59,8 @@
mockAdvanceFn(threlteContext, internalContext)
setContext('threlte-cache', [])
export const interactivityContext = interactivity()
</script>

Expand Down

0 comments on commit f1c5398

Please sign in to comment.