File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
docs/svelte-testing-library Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ import {defineConfig} from 'vite'
30
30
export default defineConfig (({mode}) => ({
31
31
plugins: [svelte ()],
32
32
resolve: {
33
- // the default would be [ 'svelte', 'node' ]
34
- // as set by vite-plugin-svelte and vitest
33
+ // The default would be [ 'svelte', 'node' ]
34
+ // as set by vite-plugin-svelte and vitest.
35
+ // This sets [ 'browser', 'svelte', 'node' ]
35
36
conditions: mode === ' test' ? [' browser' ] : [],
36
37
},
37
38
test: {
@@ -73,10 +74,11 @@ test('upload file', async () => {
73
74
74
75
## Why aren't [ transition events] [ ] running?
75
76
76
- The [ jsdom] [ ] ` requestAnimationFrame ` implementation can be unreliable in
77
- Vitest. To work around it, you can try a few things :
77
+ The [ jsdom] [ ] implementation of ` requestAnimationFrame ` can be unreliable in
78
+ Vitest. To work around it, you can:
78
79
79
- - Switch [ happy-dom] [ ] , if you are able, which does not exhibit the same issues
80
+ - Switch to [ happy-dom] [ ] , if you are able, which does not exhibit the same
81
+ issues
80
82
- Replace the implementation of ` requestAnimationFrame `
81
83
82
84
``` js
You can’t perform that action at this time.
0 commit comments