Skip to content

Commit 7aadc82

Browse files
authored
chore: mv deps to optional (#530)
* chore: mv deps to optional * chore: adjust adaptaer * test: part test case * test: more test case * test: more test case * test: more test case * test: more test case * chore: clean up
1 parent 4958587 commit 7aadc82

File tree

13 files changed

+3480
-3340
lines changed

13 files changed

+3480
-3340
lines changed

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = {
22
setupFiles: ['./tests/setup.js'],
3-
snapshotSerializers: [require.resolve('enzyme-to-json/serializer')],
43
coveragePathIgnorePatterns: ['src/locale/'],
54
};

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@
3737
"coverage": "father test --coverage",
3838
"now-build": "npm run build"
3939
},
40+
"optionalDependencies": {
41+
"date-fns": "2.x",
42+
"dayjs": "1.x",
43+
"moment": "^2.24.0"
44+
},
4045
"dependencies": {
4146
"@babel/runtime": "^7.10.1",
4247
"classnames": "^2.2.1",
43-
"date-fns": "2.x",
44-
"dayjs": "1.x",
45-
"moment": "^2.24.0",
4648
"rc-trigger": "^5.0.4",
4749
"rc-util": "^5.4.0",
4850
"shallowequal": "^1.1.0"
@@ -54,17 +56,13 @@
5456
"@rc-component/father-plugin": "^1.0.0",
5557
"@testing-library/react": "^12",
5658
"@types/classnames": "^2.2.9",
57-
"@types/enzyme": "^3.10.3",
5859
"@types/jest": "^26.0.0",
5960
"@types/react": "^17.0.11",
6061
"@types/react-dom": "^17.0.8",
6162
"@types/shallowequal": "^1.1.1",
6263
"coveralls": "^3.0.6",
6364
"cross-env": "^7.0.2",
6465
"dumi": "^1.1.37",
65-
"enzyme": "^3.0.0",
66-
"enzyme-adapter-react-16": "^1.0.1",
67-
"enzyme-to-json": "^3.4.0",
6866
"eslint": "~7.32.0",
6967
"eslint-plugin-eslint-comments": "^3.1.2",
7068
"eslint-plugin-jest": "^26.8.2",
@@ -79,7 +77,10 @@
7977
"rc-test": "^7.0.9",
8078
"react": "^17.0.0",
8179
"react-dom": "^17.0.0",
82-
"typescript": "^4.0.3"
80+
"typescript": "^4.0.3",
81+
"date-fns": "2.x",
82+
"dayjs": "1.x",
83+
"moment": "^2.24.0"
8384
},
8485
"peerDependencies": {
8586
"react": ">=16.9.0",

0 commit comments

Comments
 (0)