jest-svelte-query Svelte Themes

Jest Svelte Query

Testing components that use svelte-query

Using svelte-query with Jest

Get started

Install the dependencies...

cd jest-svelte-query
yarn

...then start Jest

yarn test:watch

...output is

 ● Test suite failed to run

    Cannot find module '../../src/methods/node.js' from 'node_modules/@sveltestack/svelte-query/dist/index.js'

    Require stack:
      node_modules/@sveltestack/svelte-query/dist/index.js
      src/App.test.ts

      at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:311:11)

Top categories

Loading Svelte Themes