Go in a new folder and do the following:
pnpm init svelte@next .
pnpx apply rossyman/svelte-add-jest --no-ssh
pnpm install
pnpm test
and observe the tests workingpreprocessing
option to svelte-jester
in jest.config.json
pnpm test
and observe tests failing with the following: FAIL src/routes/index-dom.spec.js
● Test suite failed to run
TypeError: The "id" argument must be of type string. Received an instance of URL
at node_modules/.pnpm/svelte-jester@2.1.5_jest@27.4.5+svelte@3.44.3/node_modules/svelte-jester/dist/transformer.cjs:79:118
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.534 s, estimated 2 s
Ran all test suites matching /src/i.
ERROR Test failed. See above for more details.