Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update README with ava incompatibility message
  • Loading branch information
bumblehead committed May 16, 2023
commit 9e63f9722219dce3cc38be855050ecbcd2525e4f
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"test-ts": "node --loader=ts-node/esm --loader=esmock --test *ts",
"test-jest": "NODE_OPTIONS=--loader=esmock jest"
},
"ava": [
"incompatible with --loader and node version 20 or greater",
"see: https://github.com/avajs/ava/issues/3195"
],
"jest": {
"runner": "jest-light-runner"
}
Expand Down
2 changes: 1 addition & 1 deletion src/esmockCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const esmockCache = {
}

const esmockTreeIdSet = (key, keylong) => (
(typeof global.postMessageEsmk === 'function')
typeof global.postMessageEsmk === 'function'
&& global.postMessageEsmk({ key, keylong }),
global.mockKeys[String(key)] = keylong)

Expand Down