quibble
quibble copied to clipboard
Makes it easy to replace require'd dependencies.
moment is installed with npm, and is used throughout my code not just in the test. I am trying to call a fake moment function instead of normal one, i...
Hi quibble team, I've a feature request. On my project i'm using import alias defined in my package.json like that : ``` { // [ ... ] "type": "module", "imports":...
I discovered this issue in Quibble 0.6.14 on my Windows developer machine. I wrote a test case that is supposed to fake an inner dependency, like this: ``` // logic.js...
I have a project using `replaceEsm` that works fine using `yarn`. But when I switch to `pnpm` it says that `quibble` cannot find one of my modules. I assume this...
Using the following code on quibble fails ``` import WebhookExamples from '@octokit/webhooks-examples/api.github.com/index.json' ``` ``` Uncaught exception in test/events/github/delete.test.js TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///home/runner/work/api/api/node_modules/@octokit/webhooks-examples/api.github.com/index.json" needs an import assertion of type "json" ›...
Hi everyone! First of all thank you for everything related to testdouble. I'm having some trouble regarding a esm import in a fastify project I've been working on. Here's the...
Hey @searls ! Finally got a chance to use your library. I was writing a test for one of my functions in my company's CLI. I used quibble to help...
I expect the module cache to be used for ./dep2.mjs in the following case. repro code ```js // dep1.mjs export default {} // dep2.mjs export default {} // run.mjs import...
In Node.js >= v21.0.0 quibble adds 3rd party libs with `?__quibble=0` suffix as key to the quibbled modules. When Node.js is resolving the real module quibble does not find the...
Hi, I am trying to use `quibble` to mock an ESM module and its subdependencies on a really simple exemple, but I seem to be missing something or encountering unexpected...