Skip to content

Commit

Permalink
Update to Node.js 20.x with renewing test loader and some codes (#1014)
Browse files Browse the repository at this point in the history
* `npm install --save-dev @tsconfig/strictest @tsconfig/vite-react`

* Update tsconfig with last tsconfig/base

Needed to specify allowJs for vite-react and strictes conflicts

* `npm uninstall @tsconfig/vite-react && npm install --save-dev @tsconfig/node18`

* Consider nodejs builtin tests

* `npm uninstall ts-node-test && npm install --save-dev glob`

* `npm uninstall @tsconfig/strictest @tsconfig/node18 && npm install --save-dev @tsconfig/vite-react`

* Use vite-react config instead of nodex

* Use tsx instead of ts-node-test for test loader

* `npm run eslint:fix`

* Fix null/undefined/empty handling for env.VITE_COMMIT_REF

* Update to Nodejs.20x

* Suppress no-floating-promises in test codes
  • Loading branch information
kachick authored Jul 23, 2023
1 parent 6c73b0a commit ca7c863
Show file tree
Hide file tree
Showing 20 changed files with 622 additions and 482 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ overrides:
'@typescript-eslint/prefer-readonly-parameter-types':
- error
- ignoreInferredTypes: true
- files:
- src/**/*.test.ts
rules:
'@typescript-eslint/no-floating-promises':
- off
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.0
20.5.0
Loading

0 comments on commit ca7c863

Please sign in to comment.