Setup Jest test environment
Showing
config/jest.config.js
0 → 100644
... | ... | @@ -6,6 +6,7 @@ |
"eslint": "eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .", | ||
"eslint-fix": "eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.vue --fix .", | ||
"eslint-report": "eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html --no-inline-config .", | ||
"jest": "BABEL_ENV=jest jest --config=config/jest.config.js", | ||
"karma": "BABEL_ENV=${BABEL_ENV:=karma} karma start --single-run true config/karma.config.js", | ||
"karma-coverage": "BABEL_ENV=coverage karma start --single-run true config/karma.config.js", | ||
"karma-start": "BABEL_ENV=karma karma start config/karma.config.js", | ||
... | ... | @@ -118,17 +119,23 @@ |
"@gitlab/eslint-config": "^1.2.0", | ||
"@vue/test-utils": "^1.0.0-beta.25", | ||
"axios-mock-adapter": "^1.15.0", | ||
"babel-core": "^7.0.0-bridge", | ||
"babel-jest": "^23.6.0", | ||
"babel-plugin-dynamic-import-node": "^2.2.0", | ||
"babel-plugin-istanbul": "^5.1.0", | ||
"babel-plugin-rewire": "^1.2.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", | ||
"babel-template": "^6.26.0", | ||
"babel-types": "^6.26.0", | ||
"chalk": "^2.4.1", | ||
"commander": "^2.18.0", | ||
"eslint": "~5.6.0", | ||
"eslint-import-resolver-jest": "^2.1.1", | ||
"eslint-import-resolver-webpack": "^0.10.1", | ||
"eslint-plugin-html": "4.0.5", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jasmine": "^2.10.1", | ||
"eslint-plugin-jest": "^22.1.0", | ||
"gettext-extractor": "^3.3.2", | ||
"gettext-extractor-vue": "^4.0.1", | ||
"graphql-tag": "^2.10.0", | ||
... | ... | @@ -136,6 +143,8 @@ |
"jasmine-core": "^2.9.0", | ||
"jasmine-diff": "^0.1.3", | ||
"jasmine-jquery": "^2.1.1", | ||
"jest": "^23.6.0", | ||
"jest-junit": "^5.2.0", | ||
"karma": "^3.0.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-coverage-istanbul-reporter": "^2.0.4", | ||
... | ... |
spec/frontend/.eslintrc.yml
0 → 100644
spec/frontend/dummy_spec.js
0 → 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment