Skip to content

Commit 86f2ce6

Browse files
author
Daniel A. White
authored
chore(deps): upgrade dependencies (#258)
* chore(deps): upgrade dependencies * use vitest * fix index spec * fix more tests
1 parent c30d690 commit 86f2ce6

26 files changed

+15884
-10667
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ version: 2
33
jobs:
44
test_node:
55
docker:
6-
- image: cimg/node:16.13
6+
- image: cimg/node:18.20
77
steps:
88
- checkout
99
- run: yarn
1010
- run: yarn test.prod
1111

1212
release:
1313
docker:
14-
- image: circleci/node:16.13
14+
- image: cimg/node:18.20
1515
steps:
1616
- checkout
1717
- run: yarn

.eslintrc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,5 @@
1212
"@typescript-eslint/prefer-optional-chain": "error",
1313
"@typescript-eslint/no-floating-promises": ["error", { "ignoreVoid": true }],
1414
"no-console": "warn"
15-
},
16-
"overrides": [
17-
{
18-
"files": ["*.spec.{ts,tsx}"],
19-
"env": {
20-
"jest": true
21-
}
22-
}
23-
]
15+
}
2416
}

.storybook/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ module.exports = {
44
addons: ['@storybook/addon-essentials'],
55
core: {
66
builder: "webpack5"
7-
}
7+
},
8+
// From https://github.com/hipstersmoothie/react-docgen-typescript-plugin/issues/78#issuecomment-1409224863
9+
typescript: {
10+
reactDocgen: 'react-docgen-typescript-plugin'
11+
},
812
};

jest.config.js

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

package.json

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"release.docs": "sl-scripts release:docs",
3131
"release.dryRun": "sl-scripts release --dry-run --debug",
3232
"storybook": "start-storybook -p 6006",
33-
"test": "jest",
34-
"test.prod": "yarn lint && yarn test --coverage --maxWorkers=2",
35-
"test.update": "yarn test --updateSnapshot",
36-
"test.watch": "yarn test --watch",
33+
"test": "vitest run",
34+
"test.prod": "yarn lint && vitest run --coverage",
35+
"test.update": "vitest run --update",
36+
"test.watch": "vitest",
3737
"test.packaging": "node -e \"require('./dist/index.js')\" && node --input-type=module -e \"import './dist/index.mjs'\"",
3838
"size-limit": "size-limit"
3939
},
@@ -61,46 +61,49 @@
6161
"@stoplight/markdown-viewer": "^5.3.3",
6262
"@stoplight/mosaic": "^1.32.0",
6363
"@stoplight/mosaic-code-viewer": "^1.32.0",
64-
"@stoplight/scripts": "9.2.0",
64+
"@stoplight/scripts": "10.0.0",
6565
"@stoplight/types": "^13.7.0",
66-
"@storybook/addon-essentials": "^6.4.14",
67-
"@storybook/builder-webpack5": "^6.4.14",
68-
"@storybook/core": "6.4.14",
69-
"@storybook/manager-webpack5": "^6.4.14",
70-
"@storybook/react": "^6.4.14",
66+
"@storybook/addon-essentials": "^6.5.0",
67+
"@storybook/builder-webpack5": "^6.5.0",
68+
"@storybook/core": "^6.5.0",
69+
"@storybook/manager-webpack5": "^6.5.0",
70+
"@storybook/react": "^6.5.0",
71+
"@testing-library/jest-dom": "^6.4.6",
72+
"@testing-library/react": "^12.0.0",
7173
"@types/classnames": "^2.2.11",
7274
"@types/enzyme": "^3.10.8",
73-
"@types/jest": "^26.0.18",
7475
"@types/lodash": "^4.14.149",
7576
"@types/node": "^12.7.2",
76-
"@types/react": "16.9.56",
77-
"@types/react-dom": "16.9.13",
77+
"@types/react": "^16.14.0",
78+
"@types/react-dom": "^16.9.0",
7879
"@types/treeify": "^1.0.0",
7980
"@typescript-eslint/eslint-plugin": "^5.7.0",
8081
"@typescript-eslint/parser": "^5.7.0",
81-
"babel-jest": "^26.6.3",
82+
"@vitejs/plugin-react": "^4.3.1",
83+
"@vitest/coverage-v8": "^1.6.0",
84+
"@vitest/ui": "^1.6.0",
8285
"babel-loader": "^8.2.2",
8386
"copyfiles": "^2.4.1",
8487
"enzyme": "^3.11.0",
8588
"enzyme-adapter-react-16": "^1.15.5",
8689
"enzyme-to-json": "^3.6.1",
8790
"eslint": "^8.4.1",
8891
"eslint-plugin-import": "^2.25.3",
89-
"eslint-plugin-jest": "^25.3.0",
90-
"eslint-plugin-prettier": "^4.0.0",
92+
"eslint-plugin-jest": "^28.6.0",
93+
"eslint-plugin-prettier": "^5.1.3",
9194
"eslint-plugin-react": "^7.27.1",
9295
"eslint-plugin-react-hooks": "^4.3.0",
9396
"eslint-plugin-simple-import-sort": "^7.0.0",
94-
"jest": "^26.6.2",
95-
"jest-enzyme": "^7.1.2",
96-
"prettier": "^2.5.1",
97+
"jsdom": "^24.1.0",
98+
"prettier": "^3.2.2",
9799
"react": "^16.14.0",
100+
"react-docgen-typescript-plugin": "^1.0.6",
98101
"react-dom": "^16.14.0",
99-
"rollup-plugin-terser": "^5.3.0",
100102
"size-limit": "^4.11.0",
101103
"treeify": "^1.1.0",
102-
"ts-jest": "^26.4.4",
103-
"typescript": "4.5.5",
104+
"typescript": "5.4.5",
105+
"vite": "^5.3.1",
106+
"vitest": "^1.6.0",
104107
"webpack": "^5.67.0"
105108
},
106109
"lint-staged": {

setupTests.ts

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

0 commit comments

Comments
 (0)