authelia/web/package.json
Amir Zarrinkafsh 1b06e46f71
test(web): drop enzyme in favor of react-testing-library (#2224)
* test(web): drop enzyme in favor of react-testing-library

Enzyme is falling behind in maintenance, it is currently maintained by one primary developer and still does [not support React 17](https://github.com/enzymejs/enzyme/pull/2430) despite it being released in October 2020.

[react-testing-library (RTL)](https://testing-library.com/docs) is [recommended by Facebook](https://reactjs.org/docs/test-utils.html#overview) and encourages writing tests that avoid testing implementation details.

* build(deps): update react monorepo to v17 (major)

* build(deps): remove @types/{enzyme,jest}
2021-08-03 16:25:13 +10:00

75 lines
2.0 KiB
JSON

{
"name": "web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "1.2.35",
"@fortawesome/free-regular-svg-icons": "5.15.3",
"@fortawesome/free-solid-svg-icons": "5.15.3",
"@fortawesome/react-fontawesome": "0.1.14",
"@material-ui/core": "4.12.3",
"@material-ui/icons": "4.11.2",
"axios": "0.21.1",
"classnames": "2.3.1",
"qrcode.react": "1.0.1",
"query-string": "7.0.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-ga": "3.3.0",
"react-loading": "2.0.3",
"react-otp-input": "2.4.0",
"react-router-dom": "5.2.0",
"u2f-api": "1.2.1"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"lint": "eslint '*/**/*.{js,ts,tsx}' --fix",
"coverage": "COVERAGE=true craco build",
"test": "craco test --coverage --no-cache",
"report": "nyc report -r clover -r json -r lcov -r text",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
">0.2%",
"not dead",
"not op_mini all",
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@craco/craco": "6.2.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@types/classnames": "2.3.0",
"@types/node": "15.6.0",
"@types/qrcode.react": "1.0.2",
"@types/query-string": "6.3.0",
"@types/react": "17.0.15",
"@types/react-dom": "17.0.9",
"@types/react-ga": "2.3.0",
"@types/react-router-dom": "5.1.8",
"babel-preset-react-app": "10.0.0",
"craco-alias": "3.0.1",
"eslint-config-prettier": "8.3.0",
"eslint-formatter-rdjson": "1.0.5",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-prettier": "3.4.0",
"prettier": "2.3.2",
"react-scripts": "4.0.3",
"react-test-renderer": "17.0.2",
"typescript": "4.3.5"
}
}