quibble icon indicating copy to clipboard operation
quibble copied to clipboard

Tips on using this together with other loaders?

Open fatso83 opened this issue 1 year ago • 0 comments

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?

Setup:

  • https://github.com/fatso83/sinon-swc-bug/blob/ts-esm/.mocharc.json

fatso83 avatar Aug 09 '23 12:08 fatso83