Skip to content

Commit

Permalink
feat!: require Node 18, 20, 22+
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Dec 6, 2024
1 parent 0ad8110 commit 417801e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu, windows ]
node-version: [18.x]
node-version: [18.x, 20.x, 22.x, 23.x]

steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 0 additions & 9 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,4 @@ const jestConfig = {
},
};

if (process.version.startsWith('v14.')) {
// TODO: remove this workaround after dropping support for Node 14.
// Use number greater than number of test suites to avoid: "You are trying to `import` a file after the Jest environment has been torn down."
// https://github.com/facebook/jest/issues/11438#issuecomment-954155180
jestConfig.maxConcurrency = 30;
jestConfig.maxWorkers = 30;
jestConfig.testTimeout = 10_000; // 10 seconds timeout (twice the default)
}

module.exports = jestConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"eslint": ">= 7"
},
"engines": {
"node": "^14.18.0 || ^16.0.0 || >=18.0.0"
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down

0 comments on commit 417801e

Please sign in to comment.