Tests are passed, "foo" is printed in the console.
Actual
Tests fails with this output
> playwright test
[WebServer] "confetti" is imported from external module "@neoconfetti/svelte" but never used in "src/routes/sverdle/+page.svelte".
Error: Cannot find package '$lib' imported from /Users/pnedrigailov/my/tmp/sk2/src/lib/baz.ts
Error: No tests found
ELIFECYCLE Command failed with exit code 1.
Similar, but not the same as https://github.com/microsoft/playwright/issues/28781
System info
Source code
https://github.com/shadow-identity/sk2-playwright-repro [We will only be able to work on the issues that we can reproduce.]
[Please provide a self-contained example in a form of a snippet, archive or a repository.]
[Repro scenario can't be large or have external dependencies.]
Steps
src/lib/foo.ts
with exportedfoo
functionsrc/lib/baz.ts
with exportedbaz
function. Thebaz.ts
should import and usefoo
functionbaz
intotests/test.ts
and use it inside of thetest
function callExpected
Tests are passed, "foo" is printed in the console.
Actual
Tests fails with this output