Use the library https://github.com/ValentinH/jest-fail-on-console to spy on the errors to make test failing if any occur. Transfer the configuration from the previous FilteredConsole to this new library. Allow a few targeted errors to occur to give some time to refactor while keeping the benefits to have failing on new error messages.
128 lines
4.1 KiB
JSON
128 lines
4.1 KiB
JSON
{
|
|
"name": "image-builder",
|
|
"version": "1.1.0",
|
|
"private": false,
|
|
"engines": {
|
|
"node": ">=16.0.0",
|
|
"npm": ">=7.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@data-driven-forms/pf4-component-mapper": "3.20.13",
|
|
"@data-driven-forms/react-form-renderer": "3.21.0",
|
|
"@patternfly/patternfly": "4.224.2",
|
|
"@patternfly/react-core": "4.276.8",
|
|
"@patternfly/react-table": "4.113.3",
|
|
"@redhat-cloud-services/frontend-components": "3.11.2",
|
|
"@redhat-cloud-services/frontend-components-notifications": "3.2.14",
|
|
"@redhat-cloud-services/frontend-components-utilities": "3.7.4",
|
|
"@reduxjs/toolkit": "^1.9.5",
|
|
"@scalprum/react-core": "^0.5.1",
|
|
"@unleash/proxy-client-react": "^3.6.0",
|
|
"classnames": "2.3.2",
|
|
"lodash": "4.17.21",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2",
|
|
"react-redux": "8.0.5",
|
|
"react-router-dom": "6.14.2",
|
|
"redux": "4.2.1",
|
|
"redux-promise-middleware": "6.1.3"
|
|
},
|
|
"jest": {
|
|
"coverageDirectory": "./coverage/",
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"src/**/*.js",
|
|
"!src/**/stories/*",
|
|
"!src/entry-dev.js"
|
|
],
|
|
"testEnvironment": "jsdom",
|
|
"roots": [
|
|
"<rootDir>/src/"
|
|
],
|
|
"moduleNameMapper": {
|
|
"\\.(css|scss)$": "identity-obj-proxy"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(@scalprum|@openshift|lodash-es|uuid)/)"
|
|
],
|
|
"setupFiles": [
|
|
"jest-canvas-mock"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"./src/test/jest.setup.js"
|
|
],
|
|
"testTimeout": 10000
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.22.9",
|
|
"@babel/eslint-parser": "^7.22.9",
|
|
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
"@babel/plugin-transform-runtime": "7.22.9",
|
|
"@babel/preset-env": "7.22.9",
|
|
"@babel/preset-react": "7.22.5",
|
|
"@babel/preset-typescript": "^7.22.5",
|
|
"@redhat-cloud-services/eslint-config-redhat-cloud-services": "1.3.0",
|
|
"@redhat-cloud-services/frontend-components-config": "5.0.5",
|
|
"@rtk-query/codegen-openapi": "^1.0.0",
|
|
"@testing-library/dom": "9.3.1",
|
|
"@testing-library/jest-dom": "5.17.0",
|
|
"@testing-library/react": "12.1.5",
|
|
"@testing-library/user-event": "14.4.3",
|
|
"@types/jest": "^29.5.3",
|
|
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
"@typescript-eslint/parser": "^6.2.1",
|
|
"babel-jest": "29.6.2",
|
|
"babel-plugin-dual-import": "1.2.1",
|
|
"babel-plugin-transform-imports": "2.0.0",
|
|
"copy-webpack-plugin": "^11.0.0",
|
|
"css-loader": "6.8.1",
|
|
"eslint": "^8.46.0",
|
|
"eslint-plugin-import": "2.27.5",
|
|
"eslint-plugin-jest-dom": "5.0.1",
|
|
"eslint-plugin-react": "7.33.0",
|
|
"eslint-plugin-testing-library": "5.11.1",
|
|
"git-revision-webpack-plugin": "5.0.0",
|
|
"history": "5.3.0",
|
|
"identity-obj-proxy": "3.0.0",
|
|
"jest": "^29.6.2",
|
|
"jest-canvas-mock": "2.5.2",
|
|
"jest-environment-jsdom": "29.6.2",
|
|
"jest-fail-on-console": "^3.1.1",
|
|
"msw": "^1.2.3",
|
|
"npm-run-all": "4.1.5",
|
|
"postcss-scss": "4.0.6",
|
|
"prop-types": "15.8.1",
|
|
"redux-mock-store": "1.5.4",
|
|
"sass": "1.64.2",
|
|
"sass-loader": "13.3.2",
|
|
"stylelint": "15.10.2",
|
|
"stylelint-config-recommended-scss": "12.0.0",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "5.1.6",
|
|
"uuid": "9.0.0",
|
|
"webpack-bundle-analyzer": "4.9.0",
|
|
"whatwg-fetch": "^3.6.17"
|
|
},
|
|
"scripts": {
|
|
"lint": "npm-run-all lint:*",
|
|
"lint:js": "eslint config src",
|
|
"lint:js:fix": "eslint config src --fix",
|
|
"lint:sass": "stylelint 'src/**/*.scss' --config .stylelintrc.json",
|
|
"prod-beta": "BETA=true PROXY=true webpack serve --config config/dev.webpack.config.js",
|
|
"prod-stable": "PROXY=true webpack serve --config config/dev.webpack.config.js",
|
|
"stage-stable": "STAGE=true npm run prod-stable",
|
|
"stage-beta": "STAGE=true npm run prod-beta",
|
|
"stage-beta:msw": "MSW=TRUE npm run stage-beta",
|
|
"test": "TZ=UTC jest --verbose --no-cache",
|
|
"test:single": "jest --verbose -w 1",
|
|
"build": "webpack --config config/prod.webpack.config.js",
|
|
"api": "bash api.sh",
|
|
"verify": "npm-run-all build lint test"
|
|
},
|
|
"insights": {
|
|
"appname": "image-builder"
|
|
},
|
|
"msw": {
|
|
"workerDirectory": "src"
|
|
}
|
|
}
|