Skip to content

Commit

Permalink
Upgrade packages and Node versions. (trekhleb#989)
Browse files Browse the repository at this point in the history
* Upgrade to Node 16

* Upgrade packages and Node versions.
  • Loading branch information
trekhleb authored Jan 30, 2023
1 parent 1d6249d commit bcd1cc1
Show file tree
Hide file tree
Showing 7 changed files with 11,859 additions and 2,368 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"settings": {
"react": {
"version": "latest"
"version": "18.2.0"
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x ]
node-version: [ 16.x ]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14
v16.15.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ rm -rf ./node_modules
npm i
```

Also make sure that you're using a correct Node version (`>=14.16.0`). If you're using [nvm](https://github.com/nvm-sh/nvm) for Node version management you may run `nvm use` from the root folder of the project and the correct version will be picked up.
Also make sure that you're using a correct Node version (`>=16`). If you're using [nvm](https://github.com/nvm-sh/nvm) for Node version management you may run `nvm use` from the root folder of the project and the correct version will be picked up.

**Playground**

Expand Down
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ module.exports = {
// This option sets the URL for the jsdom environment.
// It is reflected in properties such as location.href.
// @see: https://github.com/facebook/jest/issues/6769
testURL: 'http://localhost/',
testEnvironmentOptions: {
url: 'http://localhost/',
},

// @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object
coverageThreshold: {
Expand Down
Loading

0 comments on commit bcd1cc1

Please sign in to comment.