Basic jest tests are added for the landing page. These tests use the react testing library so the enzyme dependencies are removed from the package.json. The travis config is also updated.
85 lines
2.8 KiB
JSON
85 lines
2.8 KiB
JSON
{
|
|
"name": "image-builder",
|
|
"version": "1.1.0",
|
|
"private": false,
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.8.4",
|
|
"@patternfly/patternfly": "^2.62.0",
|
|
"@patternfly/react-core": "3.134.2",
|
|
"@patternfly/react-table": "^2.25.6",
|
|
"@redhat-cloud-services/frontend-components": "1.0.2",
|
|
"@redhat-cloud-services/frontend-components-utilities": "1.0.0",
|
|
"classnames": "^2.2.6",
|
|
"react": "^16.12.0",
|
|
"react-dom": "^16.12.0",
|
|
"react-redux": "^7.1.3",
|
|
"react-router-dom": "^5.1.2",
|
|
"redux": "^4.0.5",
|
|
"redux-logger": "^3.0.6",
|
|
"redux-promise-middleware": "^6.1.2"
|
|
},
|
|
"jest": {
|
|
"coverageDirectory": "./coverage/",
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"src/**/*.js",
|
|
"!src/**/stories/*"
|
|
],
|
|
"roots": [
|
|
"<rootDir>/src/"
|
|
],
|
|
"moduleNameMapper": {
|
|
"\\.(css|scss)$": "identity-obj-proxy"
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.8.4",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-runtime": "^7.8.3",
|
|
"@babel/preset-env": "^7.8.4",
|
|
"@babel/preset-flow": "^7.8.3",
|
|
"@babel/preset-react": "^7.8.3",
|
|
"@redhat-cloud-services/frontend-components-config": "1.0.0",
|
|
"@testing-library/react": "^11.0.4",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^26.1.0",
|
|
"babel-plugin-dual-import": "^1.2.1",
|
|
"babel-plugin-lodash": "^3.3.4",
|
|
"css-loader": "^3.4.2",
|
|
"eslint": "^6.8.0",
|
|
"eslint-config-prettier": "^6.10.0",
|
|
"eslint-loader": "^3.0.3",
|
|
"eslint-plugin-react": "^7.18.3",
|
|
"identity-obj-proxy": "^3.0.0",
|
|
"jest": "^26.1.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prop-types": "^15.7.2",
|
|
"redux-mock-store": "^1.5.4",
|
|
"stylelint": "^13.1.0",
|
|
"stylelint-config-recommended-scss": "^4.2.0",
|
|
"stylelint-scss": "^3.14.2",
|
|
"webpack": "^4.41.6",
|
|
"webpack-bundle-analyzer": "^3.6.0",
|
|
"webpack-cli": "^3.3.11"
|
|
},
|
|
"scripts": {
|
|
"build": "webpack --config config/prod.webpack.config.js",
|
|
"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",
|
|
"nightly": "npm run travis:verify",
|
|
"prod": "NODE_ENV=production webpack-dev-server --config config/dev.webpack.config.js",
|
|
"server:ctr": "node src/server/generateServerKey.js",
|
|
"start": "NODE_ENV=development webpack-dev-server --config config/dev.webpack.config.js",
|
|
"test": "jest --verbose",
|
|
"travis:build": "NODE_ENV=production webpack --config config/prod.webpack.config.js",
|
|
"travis:verify": "npm-run-all travis:build lint test",
|
|
"verify": "npm-run-all build lint test"
|
|
},
|
|
"insights": {
|
|
"appname": "image-builder"
|
|
}
|
|
}
|