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