Skip to content

eden-omb/svelte-jester-preprocess-issue

Repository files navigation

Reproducing this repo

Go in a new folder and do the following:

  • Run pnpm init svelte@next .
  • Run pnpx apply rossyman/svelte-add-jest --no-ssh
  • Run pnpm install
  • Run pnpm test and observe the tests working
  • Add the preprocessing option to svelte-jester in jest.config.json
  • Run 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/[email protected][email protected][email protected]/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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published