debian-image-builder-frontend/package.json
regexowl 32ec1a6d27 jest: Increase test timeout
This increases default test timeout from 10000 to 20000 and timeout for "image name invalid for more than 100 chars and description for 250" to 50000.

This should eliminate test flakes caused by timing out, later it will be "reverted" when the Vitest migration gets merged.
2024-07-16 10:47:54 +02:00

142 lines
4.6 KiB
JSON

{
"name": "image-builder",
"version": "1.1.0",
"private": false,
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"dependencies": {
"@patternfly/patternfly": "5.3.1",
"@patternfly/react-core": "5.3.4",
"@patternfly/react-code-editor": "5.3.4",
"@patternfly/react-table": "5.3.4",
"@redhat-cloud-services/frontend-components": "4.2.12",
"@redhat-cloud-services/frontend-components-notifications": "4.1.0",
"@redhat-cloud-services/frontend-components-utilities": "4.0.13",
"@reduxjs/toolkit": "2.2.6",
"@scalprum/react-core": "0.8.0",
"@unleash/proxy-client-react": "4.3.0",
"classnames": "2.5.1",
"lodash": "4.17.21",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-redux": "9.1.2",
"react-router-dom": "6.24.1",
"redux": "5.0.1",
"redux-promise-middleware": "6.2.0"
},
"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|@redhat-cloud-services|lodash-es|uuid)/)"
],
"setupFiles": [
"jest-canvas-mock"
],
"setupFilesAfterEnv": [
"./src/test/jest.setup.js"
],
"testTimeout": 20000
},
"devDependencies": {
"@babel/core": "7.24.7",
"@babel/eslint-parser": "7.24.7",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-transform-runtime": "7.24.7",
"@babel/preset-env": "7.24.8",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@patternfly/react-icons": "5.3.2",
"@redhat-cloud-services/eslint-config-redhat-cloud-services": "2.0.4",
"@redhat-cloud-services/frontend-components-config": "5.0.5",
"@rtk-query/codegen-openapi": "1.2.0",
"@testing-library/dom": "10.3.1",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.12",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-redux": "7.1.33",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "7.16.0",
"@typescript-eslint/parser": "7.16.0",
"babel-jest": "29.7.0",
"babel-plugin-dual-import": "1.2.1",
"babel-plugin-transform-imports": "2.0.0",
"chart.js": "4.4.3",
"chartjs-adapter-moment": "1.0.1",
"chartjs-plugin-annotation": "3.0.1",
"copy-webpack-plugin": "12.0.2",
"css-loader": "7.1.2",
"eslint": "8.57.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest-dom": "5.4.0",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-redux": "4.1.0",
"eslint-plugin-testing-library": "6.2.2",
"git-revision-webpack-plugin": "5.0.0",
"history": "5.3.0",
"identity-obj-proxy": "3.0.0",
"jest": "29.7.0",
"jest-canvas-mock": "2.5.2",
"jest-environment-jsdom": "29.7.0",
"jest-fail-on-console": "3.3.0",
"moment": "2.30.1",
"msw": "1.2.3",
"npm-run-all": "4.1.5",
"postcss-scss": "4.0.9",
"react-chartjs-2": "5.2.0",
"redux-mock-store": "1.5.4",
"sass": "1.77.8",
"sass-loader": "14.2.1",
"stylelint": "15.11.0",
"stylelint-config-recommended-scss": "13.1.0",
"ts-node": "10.9.2",
"typescript": "5.1.6",
"uuid": "10.0.0",
"webpack-bundle-analyzer": "4.10.2",
"whatwg-fetch": "3.6.20"
},
"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",
"devel": "webpack serve --config config/devel.webpack.config.js",
"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": "npm-run-all api:pull api:generate",
"api:generate": "bash api/codegen.sh",
"api:pull": "bash api/pull.sh",
"verify": "npm-run-all build lint test"
},
"insights": {
"appname": "image-builder"
},
"msw": {
"workerDirectory": "src"
}
}