- Testing: Switch to Cypress with code coverage
- npm: Add peerDeps
This commit is contained in:
25
package.json
25
package.json
@@ -27,9 +27,20 @@
|
||||
"rollup": "rollup -c",
|
||||
"start-embedded": "echo \"Open file to http://localhost:8000/editor/embedapi.html\" && static -p 8000 | static -p 8001 -H '{\"Access-Control-Allow-Origin\": \"*\"}'",
|
||||
"start": "echo \"Open file to http://localhost:8000/test/all_tests.html\" && static -p 8000",
|
||||
"cypress:open": "cypress open",
|
||||
"cypress:run": "cypress run",
|
||||
"open-report": "open http://localhost:3000/coverage/",
|
||||
"start-open-report": "run-p start open-report",
|
||||
"instrument": "npx nyc instrument app/public instrumented",
|
||||
"open-cov": "npm-run-all instrument --parallel --race start cypress:open",
|
||||
"open": "run-p start cypress:open",
|
||||
"report": "npx nyc report",
|
||||
"report-summary": "npx nyc report --reporter=text-summary",
|
||||
"test-cov": "npm-run-all instrument --parallel --race start cypress:run ; npm run report-summary",
|
||||
"test-cov-open": "npm-run-all instrument --parallel --race start cypress:run",
|
||||
"test-no-build": "npm run eslint && npm run build-html && npm run build-by-config && open-cli http://localhost:8000/test/all_tests.html && static -p 8000",
|
||||
"test-prep": "npm run eslint && npm run build-html && npm run rollup && npm run build-by-config",
|
||||
"test": "testcafe chrome test/ui-tests/**/*.js --skip-js-errors",
|
||||
"test": "run-p start cypress:run",
|
||||
"browser-test": "npm run test-prep && open-cli http://localhost:8000/test/all_tests.html && static -p 8000"
|
||||
},
|
||||
"repository": {
|
||||
@@ -82,16 +93,21 @@
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.7.4",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4",
|
||||
"@babel/preset-env": "^7.7.4",
|
||||
"@cypress/code-coverage": "^1.10.2",
|
||||
"@cypress/fiddle": "^1.4.0",
|
||||
"@mysticatea/eslint-plugin": "^13.0.0",
|
||||
"axe-core": "^3.4.0",
|
||||
"axe-testcafe": "^3.0.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
|
||||
"coffeescript": "^2.4.1",
|
||||
"core-js-bundle": "^3.4.2",
|
||||
"cypress": "^3.6.1",
|
||||
"cypress-axe": "^0.5.1",
|
||||
"eslint": "6.7.0",
|
||||
"eslint-config-ash-nazg": "12.0.0",
|
||||
"eslint-config-standard": "14.1.0",
|
||||
"eslint-plugin-array-func": "^3.1.3",
|
||||
"eslint-plugin-compat": "^3.3.0",
|
||||
"eslint-plugin-cypress": "^2.7.0",
|
||||
"eslint-plugin-eslint-comments": "^3.1.2",
|
||||
"eslint-plugin-html": "^6.0.0",
|
||||
"eslint-plugin-import": "2.18.2",
|
||||
@@ -103,13 +119,14 @@
|
||||
"eslint-plugin-qunit": "^4.0.0",
|
||||
"eslint-plugin-sonarjs": "^0.5.0",
|
||||
"eslint-plugin-standard": "4.0.1",
|
||||
"eslint-plugin-testcafe": "^0.2.1",
|
||||
"eslint-plugin-unicorn": "^13.0.0",
|
||||
"imageoptim-cli": "^3.0.2",
|
||||
"jamilih": "^0.46.0",
|
||||
"jsdoc": "^3.6.3",
|
||||
"load-stylesheets": "^0.9.0",
|
||||
"node-static": "^0.7.11",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nyc": "^14.1.1",
|
||||
"open-cli": "^5.0.0",
|
||||
"promise-fs": "^2.1.1",
|
||||
"qr-manipulation": "https://github.com/brettz9/qr-manipulation",
|
||||
@@ -125,6 +142,6 @@
|
||||
"sinon": "^7.5.0",
|
||||
"sinon-test": "^2.4.0",
|
||||
"stackblur-canvas": "^2.2.0",
|
||||
"testcafe": "^1.7.0"
|
||||
"typescript": "^3.7.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user