Skip to content

Commit

Permalink
test: 馃拲 fix loading wrong esm/cjs format for Jest 28+
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Jun 16, 2023
1 parent 6195308 commit eab9f5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/tools/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ module.exports = {
require.resolve('jest-watch-typeahead/filename'),
require.resolve('jest-watch-typeahead/testname'),
],
// https://github.com/preactjs/preact/pull/3634
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons'],
},
};
1 change: 1 addition & 0 deletions packages/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"find-free-port": "^2.0.0",
"jest": "29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-watch-typeahead": "^2.2.2",
"prettier": "2.8.8",
"supertest": "6.3.3",
Expand Down

0 comments on commit eab9f5b

Please sign in to comment.