You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing vitest in a fresh SvelteKit project causes playwright tests to fail with a runtime error. The project's README.md provides the full error report, but a sample of the error message is as follows:
[WebServer] [vite-plugin-svelte] /home/my_home/vitest-playwright-bug/.svelte-kit/runtime/components/layout.svelte:15:1 The keyword 'let' is reserved
file: /home/my_home/vitest-playwright-bug/.svelte-kit/runtime/components/layout.svelte:15:1
13 |
14 | function create_fragment(ctx) {
15 | let current;
^
16 | const default_slot_template = /*#slots*/ ctx[1].default;
17 | const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[0], null);
[WebServer] > /home/my_home/vitest-playwright-bug/.svelte-kit/runtime/components/layout.svelte:15:1 The keyword 'let' is reserved
[WebServer] 13:
14: function create_fragment(ctx) {
15: let current;
^
16: const default_slot_template = /*#slots*/ ctx[1].default;
17: const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[0], null);
at error (file:///home/my_home/vitest-playwright-bug/node_modules/svelte/compiler.mjs:17716:19)
...
Reproduction
I have created a public repo that illustrates the problem:
Describe the bug
Installing
vitest
in a fresh SvelteKit project causesplaywright
tests to fail with a runtime error. The project's README.md provides the full error report, but a sample of the error message is as follows:Reproduction
I have created a public repo that illustrates the problem:
https://github.com/kyllerss/vitest-playwright-bug
The commit history is clean to illustrate where things break.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: