|
23 | 23 | },
|
24 | 24 | "scripts": {
|
25 | 25 | "storybook": "start-storybook -s ./node_modules/@salesforce-ux/design-system -p 9001 -c .storybook",
|
26 |
| - "test": "run-s test:jest test:storyshots", |
27 |
| - "test:storyshots": "NODE_ENV=test jest test/storyshots/*.test.js", |
28 |
| - "test:jest": "jest test/*-spec.tsx", |
29 |
| - "pretest:visual": "STORYBOOK_MODE=visual-test storycap --serverCmd \"npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000", |
| 26 | + "test": "echo \"no test to run\"", |
| 27 | + "pretest:visual": "storycap --serverCmd \"npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000", |
30 | 28 | "test:visual": "reg-suit -v run",
|
31 | 29 | "type-check": "tsc --noEmit",
|
32 | 30 | "type-check:watch": "npm run type-check -- --watch",
|
33 | 31 | "format": "npm run lint:src -- --fix && npm run lint:stories -- --fix && npm run lint:test -- --fix",
|
34 |
| - "lint": "npm run lint:src && npm run lint:stories && npm run lint:test", |
| 32 | + "lint": "npm run lint:src && npm run lint:stories", |
35 | 33 | "lint:src": "eslint --ext .ts,.tsx src/scripts/**",
|
36 | 34 | "lint:stories": "eslint --ext .ts,.tsx stories/**",
|
37 |
| - "lint:test": "eslint --ext .js,.ts,.tsx test/**", |
38 | 35 | "build": "run-p build:lib build:module build:types",
|
39 | 36 | "build:lib": "babel -d lib/ src/ --extensions \".ts,.tsx\" --source-maps true",
|
40 | 37 | "build:module": "BUILD_TARGET=module babel -d module/ src/ --extensions \".ts,.tsx\" --source-maps true",
|
|
64 | 61 | "devDependencies": {
|
65 | 62 | "@babel/cli": "^7.17.6",
|
66 | 63 | "@babel/core": "^7.17.9",
|
67 |
| - "@babel/plugin-proposal-class-properties": "^7.16.7", |
68 | 64 | "@babel/plugin-transform-runtime": "^7.17.0",
|
69 |
| - "@babel/polyfill": "^7.12.1", |
70 | 65 | "@babel/preset-env": "^7.16.11",
|
71 | 66 | "@babel/preset-react": "^7.16.7",
|
72 | 67 | "@babel/preset-typescript": "^7.16.7",
|
|
78 | 73 | "@storybook/react": "^6.4.22",
|
79 | 74 | "@storybook/theming": "^6.4.22",
|
80 | 75 | "@types/classnames": "^2.2.7",
|
81 |
| - "@types/enzyme": "^3.10.12", |
82 |
| - "@types/jest": "^25.2.3", |
83 |
| - "@types/power-assert": "^1.5.0", |
84 | 76 | "@types/react": "^17",
|
85 | 77 | "@types/react-dom": "^17",
|
86 | 78 | "@types/svg4everybody": "^2.1.1",
|
87 | 79 | "@typescript-eslint/eslint-plugin": "^5.20.0",
|
88 | 80 | "@typescript-eslint/parser": "^5.20.0",
|
89 |
| - "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7", |
90 |
| - "babel-eslint": "^10.0.1", |
91 |
| - "babel-jest": "^25.5.1", |
92 | 81 | "babel-loader": "^8.1.0",
|
93 |
| - "babel-plugin-espower": "^2.1.2", |
94 |
| - "enzyme": "^3.11.0", |
95 | 82 | "eslint": "^8.14.0",
|
96 |
| - "eslint-config-airbnb": "^19.0.4", |
97 | 83 | "eslint-config-prettier": "^8.5.0",
|
98 |
| - "eslint-plugin-import": "^2.26.0", |
99 | 84 | "eslint-plugin-jsx-a11y": "^6.5.1",
|
100 | 85 | "eslint-plugin-prettier": "^4.0.0",
|
101 | 86 | "eslint-plugin-react": "^7.29.4",
|
102 | 87 | "gh-pages": "^0.12.0",
|
103 |
| - "jest": "^25.5.4", |
104 | 88 | "npm-run-all": "^4.0.1",
|
105 |
| - "power-assert": "^1.4.1", |
106 | 89 | "prettier": "^2.6.2",
|
107 | 90 | "react": "^17.0.2",
|
108 |
| - "react-addons-test-utils": "^15.6.2", |
109 | 91 | "react-dom": "^17.0.2",
|
110 |
| - "react-test-renderer": "^17.0.2", |
111 | 92 | "reg-keygen-git-hash-plugin": "^0.11.1",
|
112 | 93 | "reg-notify-github-plugin": "^0.11.1",
|
113 | 94 | "reg-publish-s3-plugin": "^0.11.0",
|
|
121 | 102 | },
|
122 | 103 | "resolutions": {
|
123 | 104 | "@types/react": "^16.8.12"
|
124 |
| - }, |
125 |
| - "jest": { |
126 |
| - "testRegex": "(/test/.*|\\.(test|spec))\\.(js|tsx)$", |
127 |
| - "setupFilesAfterEnv": [ |
128 |
| - "<rootDir>/test/setupTests.js" |
129 |
| - ], |
130 |
| - "collectCoverage": true, |
131 |
| - "moduleNameMapper": { |
132 |
| - "\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js" |
133 |
| - } |
134 | 105 | }
|
135 | 106 | }
|
0 commit comments