Jest custom resolver to resolve Svelte components.
Jest resolver option supported for jest >=20 versions.
Install with yarn
yarn add jest-svelte-resolver -D
or install with npm
npm install jest-svelte-resolver -D
add to your jest configuration
{
"resolver": "jest-svelte-resolver"
}