Attempting to run spec tests with components using stencil-hooks throws an error SyntaxError: Unexpected token 'export' because haunted library uses ESM export.
Although this isn't necessarily an issue directly related to stencil-hooks, I am curious if you've come across/solved this issue.
node_modules/haunted/lib/haunted.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export { html, render, component, createContext, virtual } from './lit-haunted.js';
^^^^^^
SyntaxError: Unexpected token 'export'
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)
at Object.<anonymous> (node_modules/@saasquatch/stencil-hooks/build/stencil-hooks.js:1:98)
General recommendation is to modify transformIgnorePatterns for testing config, but I wasn't able to resolve using that approach.
Attempting to run spec tests with components using
stencil-hooksthrows an errorSyntaxError: Unexpected token 'export'becausehauntedlibrary uses ESMexport.Although this isn't necessarily an issue directly related to
stencil-hooks, I am curious if you've come across/solved this issue.General recommendation is to modify
transformIgnorePatternsfor testing config, but I wasn't able to resolve using that approach.