Web: Components: Reverted versions packages for tests, added configs

This commit is contained in:
Alexey Kostenko 2021-03-01 19:07:06 +03:00
parent afda34a20a
commit 73b65d6f6c
7 changed files with 49 additions and 28 deletions

View File

@ -0,0 +1,9 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

View File

@ -0,0 +1 @@
dist/

View File

@ -1,6 +0,0 @@
{
"parser": "babel-eslint",
"env": {
"jest": true
}
}

View File

@ -0,0 +1,13 @@
module.exports = {
parser: "babel-eslint",
extends: ["eslint:recommended", "plugin:react/recommended"],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
node: true,
},
};

View File

@ -19,7 +19,7 @@ module.exports = {
plugins,
env: {
test: {
presets: ["@babel/preset-env", "@babel/preset-react", "jest"],
presets: ["@babel/preset-env", "@babel/preset-react"],
},
},
};

View File

@ -0,0 +1,4 @@
import Enzyme from "enzyme";
import Adapter from "enzyme-adapter-react-16";
Enzyme.configure({ adapter: new Adapter() });

View File

@ -10,34 +10,34 @@
"test:coverage": "jest --coverage"
},
"devDependencies": {
"@babel/cli": "^7.13.0",
"@babel/core": "^7.13.8",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-export-default-from": "^7.12.13",
"@babel/plugin-proposal-export-namespace-from": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.13.8",
"@babel/preset-env": "^7.13.8",
"@babel/preset-react": "^7.12.13",
"@emotion/babel-preset-css-prop": "^11.2.0",
"@emotion/styled": "^11.1.5",
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-export-default-from": "^7.12.1",
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@emotion/babel-preset-css-prop": "^10.2.1",
"@emotion/styled": "^10.0.27",
"@svgr/rollup": "^5.5.0",
"@svgr/webpack": "^5.5.0",
"@testing-library/react": "^11.2.5",
"@types/jest": "^26.0.20",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"@testing-library/react": "^9.5.0",
"@types/jest": "^24.9.1",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babel-loader": "^8.2.2",
"babel-plugin-inline-react-svg": "^2.0.1",
"babel-plugin-inline-react-svg": "^1.1.2",
"babel-plugin-transform-dynamic-import": "^2.1.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-plugin-transform-rename-import": "^2.3.0",
"babel-preset-react-app": "^10.0.0",
"cross-env": "^7.0.3",
"css-loader": "^5.1.1",
"babel-preset-react-app": "^9.1.2",
"cross-env": "^6.0.3",
"css-loader": "^3.6.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.21.0",
"eslint-plugin-react": "^7.22.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^6.8.0",
"eslint-plugin-react": "^7.17.0",
"jest": "^24.9.0",
"jest-enzyme": "^7.1.2",
"jest-junit": "^10.0.0",