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
I was able to use Quibble alongside SWC with Mocha when running tests for a TypeScript project, as long I kept myself in the realm of Common JS. I have also successfully ran the same tests as true ESM when un-typescript-ifying the project by running the quibble loader.
Now, I am trying to setup both the SWC loader and the Quibble loader and I am having issues as soon as I run npm test:
RangeError [ERR_UNKNOWN_MODULE_FORMAT]: Unknown module format: undefined for URL file:///Users/carlerik/code/sinon-swc-bug/src/main.spec.ts.mjs?__quibble=0
After unsuccessfully trying to debug the quibble esm loader, I was wondering if there were any hints anywhere on running multiple loaders with Quibble?
I was able to get this working by passing the loader params directly to node rather than via mocha. My take was that mocha only supports one loader but node allows you to specify two: node --loader ts-node/esm --loader quibble ./node_modules/mocha/bin/mocha
I was able to use Quibble alongside SWC with Mocha when running tests for a TypeScript project, as long I kept myself in the realm of Common JS. I have also successfully ran the same tests as true ESM when un-typescript-ifying the project by running the quibble loader.
Now, I am trying to setup both the SWC loader and the Quibble loader and I am having issues as soon as I run
npm test
:After unsuccessfully trying to debug the quibble esm loader, I was wondering if there were any hints anywhere on running multiple loaders with Quibble?
Setup:
The text was updated successfully, but these errors were encountered: