update formik
Showing
... | ... | @@ -48,7 +48,7 @@ |
"eslint-plugin-react": "7.19.0", | ||
"eslint-plugin-react-hooks": "^1.6.1", | ||
"file-loader": "4.3.0", | ||
"formik": "^1.5.8", | ||
"formik": "^2.1.5", | ||
"fs-extra": "^8.1.0", | ||
"html-webpack-plugin": "4.0.0-beta.11", | ||
"html2canvas": "^1.0.0-rc.5", | ||
... | ... | @@ -123,27 +123,37 @@ |
"eslintConfig": { | ||
"extends": "react-app" | ||
}, | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all" | ||
], | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"jest": { | ||
"roots": [ | ||
"<rootDir>/src" | ||
], | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx,ts,tsx}", | ||
"!src/**/*.d.ts" | ||
], | ||
"resolver": "jest-pnp-resolver", | ||
"setupFiles": [ | ||
"react-app-polyfill/jsdom" | ||
], | ||
"setupFilesAfterEnv": [ | ||
"<rootDir>/src/setupTests.ts" | ||
], | ||
"testMatch": [ | ||
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", | ||
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}" | ||
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}" | ||
], | ||
"testEnvironment": "jsdom", | ||
"testURL": "http://localhost", | ||
"testEnvironment": "jest-environment-jsdom-fourteen", | ||
"transform": { | ||
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest", | ||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", | ||
... | ... | @@ -153,6 +163,7 @@ |
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", | ||
"^.+\\.module\\.(css|sass|scss)$" | ||
], | ||
"modulePaths": [], | ||
"moduleNameMapper": { | ||
"^react-native$": "react-native-web", | ||
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" | ||
... | ... | @@ -170,8 +181,8 @@ |
"node" | ||
], | ||
"watchPlugins": [ | ||
"/Users/baiguangyao/project/my-julyedu/node_modules/jest-watch-typeahead/filename.js", | ||
"/Users/baiguangyao/project/my-julyedu/node_modules/jest-watch-typeahead/testname.js" | ||
"jest-watch-typeahead/filename", | ||
"jest-watch-typeahead/testname" | ||
] | ||
}, | ||
"babel": { | ||
... | ... |
Please
register
or
sign in
to comment