Skip to content

Commit 3ddde69

Browse files
author
Daniel A. White
authored
chore(deps): upgrade, replace with vitest (#129)
1 parent d596fea commit 3ddde69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+7099
-7043
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22

33
jobs:
4-
test_node_16:
4+
test_node:
55
docker:
6-
- image: circleci/node:16
6+
- image: cimg/node:18.20
77
steps:
88
- checkout
99
- run:
@@ -24,7 +24,7 @@ jobs:
2424
2525
release:
2626
docker:
27-
- image: circleci/node:16
27+
- image: cimg/node:18.20
2828
steps:
2929
- checkout
3030
- run: yarn
@@ -35,10 +35,10 @@ workflows:
3535
version: 2
3636
test_and_release:
3737
jobs:
38-
- test_node_16
38+
- test_node
3939
- release:
4040
filters:
4141
branches:
4242
only: master
4343
requires:
44-
- test_node_16
44+
- test_node

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": ["@stoplight"],
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"project": "./tsconfig.json"
6+
},
7+
"rules": {
8+
"no-param-reassign": "warn"
9+
}
10+
}

.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

jest.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,39 @@
3232
"lint.fix": "yarn lint --fix",
3333
"release": "sl-scripts release",
3434
"release.dryRun": "sl-scripts release --dry-run --debug",
35-
"test": "jest",
36-
"test.prod": "yarn lint && yarn test --coverage --no-cache --max-workers=2",
37-
"test.update": "yarn test --updateSnapshot",
38-
"test.watch": "yarn test --watch"
35+
"test": "vitest run",
36+
"test.prod": "yarn lint && vitest run --coverage",
37+
"test.update": "vitest run --update",
38+
"test.watch": "vitest",
39+
"prepare": "husky"
3940
},
4041
"dependencies": {
4142
"@stoplight/ordered-object-literal": "^1.0.3",
4243
"@stoplight/path": "^1.3.2",
4344
"@stoplight/types": "^13.6.0",
44-
"jsonc-parser": "~2.2.1",
45+
"jsonc-parser": "~3.2.1",
4546
"lodash": "^4.17.21",
4647
"safe-stable-stringify": "^1.1"
4748
},
4849
"devDependencies": {
49-
"@stoplight/eslint-config": "^3.0.0",
50-
"@stoplight/scripts": "^7.0.4",
51-
"@types/jest": "^28.1.6",
50+
"@stoplight/eslint-config": "3.0.0",
51+
"@stoplight/scripts": "^10.0.0",
5252
"@types/lodash": "^4.14.144",
5353
"@types/node": "^12.12.5",
54-
"@typescript-eslint/eslint-plugin": "^5.32.0",
55-
"@typescript-eslint/parser": "^5.32.0",
54+
"@typescript-eslint/eslint-plugin": "^5.7.0",
55+
"@typescript-eslint/parser": "^5.7.0",
56+
"@vitest/coverage-v8": "^1.6.0",
5657
"benchmark": "^2.1.4",
5758
"eslint": "^8.21.0",
5859
"eslint-plugin-import": "^2.26.0",
59-
"eslint-plugin-jest": "^26.7.0",
60+
"eslint-plugin-jest": "^28.6.0",
6061
"eslint-plugin-prettier": "^4.2.1",
6162
"eslint-plugin-react": "^7.30.1",
6263
"eslint-plugin-react-hooks": "^4.6.0",
6364
"eslint-plugin-simple-import-sort": "^7.0.0",
64-
"jest": "^28.1.3",
6565
"prettier": "^2.3.1",
66-
"ts-jest": "^28.0.7",
67-
"typescript": "^4.7.4"
66+
"typescript": "^5.4.5",
67+
"vitest": "^1.6.0"
6868
},
6969
"lint-staged": {
7070
"*.{ts,tsx}$": [

0 commit comments

Comments
 (0)