testdouble / quibble

Makes it easy to replace require'd dependencies.
94 stars 25 forks source link

Fix esm api documentation and examples #91

Closed Trim closed 1 year ago

Trim commented 1 year ago

The npm script test:example-esm was running the example tests instead of example-esm.

I've fixed the script command and I had to fix the example-esm itself too to use the quibble.esm API instead of quibble.

I've also updated the example-esm to illustrate both way to define the default export.

Finally, I added a second commit to list all arguments the quibble.esm method can receive and how to use it.