You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAIL src/routes/page.spec.ts [ src/routes/page.spec.ts ]
Error: No "exports" main defined in /Users/cesar/code/svelte4-testing-example/node_modules/.pnpm/@[email protected][email protected]/node_modules/svelte/package.json
❯ Object.<anonymous> node_modules/.pnpm/@[email protected][email protected]/node_modules/@testing-library/svelte/dist/pure.js:28:15
Serialized Error: {
"code": "ERR_PACKAGE_PATH_NOT_EXPORTED",
}
Recommendation:
My recommendation would be that they remove the babel build step which should not be necessary and add "type": "module". Given that its for testing Svelte libraries, they should only need an ESM version and probably shouldn't be distributing it as CJS @benmccann
The text was updated successfully, but these errors were encountered:
Describe the bug
@testing-library/svelte tests crash on upgrading to [svelte4].(https://www.npmjs.com/package/svelte/v/4.0.0-next.0).
Reproduction
Minimal Example Repo:
https://github.com/cesarnml/svelte4-testing-example
pnpm i
pnpm test:unit
Logs
Recommendation:
The text was updated successfully, but these errors were encountered: