mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
chore: fix tests, upgrade to node 16
This commit is contained in:
parent
10e095656f
commit
9799114b7c
5 changed files with 1309 additions and 247 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-node@v2.1.5
|
- uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
preset: 'ts-jest/presets/js-with-babel',
|
preset: 'ts-jest/presets/js-with-ts',
|
||||||
testEnvironment: 'enzyme',
|
testEnvironment: 'jsdom',
|
||||||
reporters: ['default'],
|
reporters: ['default'],
|
||||||
setupFilesAfterEnv: ['jest-enzyme', 'jest-styled-components', './hack/jestSetup.ts'],
|
setupFilesAfterEnv: ['jest-styled-components', './hack/jestSetup.ts'],
|
||||||
snapshotSerializers: ['enzyme-to-json/serializer'],
|
snapshotSerializers: ['enzyme-to-json/serializer'],
|
||||||
globals: {
|
globals: {
|
||||||
'ts-jest': {
|
'ts-jest': {
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
"enzyme-adapter-react-16": "^1.15.6",
|
"enzyme-adapter-react-16": "^1.15.6",
|
||||||
"husky": "^6.0.0",
|
"husky": "^6.0.0",
|
||||||
"is-ci": "^3.0.0",
|
"is-ci": "^3.0.0",
|
||||||
|
"jest": "^27.0.6",
|
||||||
"jest-enzyme": "^7.1.2",
|
"jest-enzyme": "^7.1.2",
|
||||||
"jest-react-hooks-shallow": "^1.5.1",
|
"jest-react-hooks-shallow": "^1.5.1",
|
||||||
"jest-styled-components": "^7.0.4",
|
"jest-styled-components": "^7.0.4",
|
||||||
|
|
|
@ -23,12 +23,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@icons/material": "^0.4.1",
|
"@icons/material": "^0.4.1",
|
||||||
"@storybook/addon-actions": "^6.3.1",
|
"@storybook/addon-actions": "^6.3.2",
|
||||||
"@storybook/addon-essentials": "^6.3.1",
|
"@storybook/addon-essentials": "^6.3.2",
|
||||||
"@storybook/addon-links": "^6.3.1",
|
"@storybook/addon-links": "^6.3.2",
|
||||||
"@storybook/addons": "^6.3.1",
|
"@storybook/addons": "^6.3.2",
|
||||||
"@storybook/react": "^6.3.1",
|
"@storybook/react": "^6.3.2",
|
||||||
"@storybook/theming": "^6.3.1",
|
"@storybook/theming": "^6.3.2",
|
||||||
"@types/chroma-js": "^2.1.3",
|
"@types/chroma-js": "^2.1.3",
|
||||||
"@types/node": "^15.12.5",
|
"@types/node": "^15.12.5",
|
||||||
"@types/react": "^17.0.11",
|
"@types/react": "^17.0.11",
|
||||||
|
|
Loading…
Add table
Reference in a new issue