- Run tests against instrumented version, fixing instrumentation
This commit is contained in:
@@ -31,7 +31,10 @@
|
||||
"cypress:run": "cypress run",
|
||||
"open-report": "open http://localhost:8000/coverage/",
|
||||
"start-open-report": "run-p start open-report",
|
||||
"instrument": "npx nyc instrument editor instrumented",
|
||||
"instrument:replace-html": "FRS-replace \"../svgedit-config-es.js\" \"svgedit-config-es.js\" -i instrumented/svg-editor-es.html -o instrumented/svg-editor-es.html",
|
||||
"instrument:replace-js": "FRS-replace \"editor/svg-editor.js\" \"svg-editor.js\" -i svgedit-config-es.js -o instrumented/svgedit-config-es.js",
|
||||
"copy-instrumented": "copyfiles -e \"**/*.js\" -u 1 \"editor/**/*\" instrumented && npm run instrument:replace-html && npm run instrument:replace-js",
|
||||
"instrument": "rm -Rf instrumented && npx nyc instrument editor instrumented && npm run copy-instrumented",
|
||||
"open-cov": "npm-run-all instrument --parallel --race start cypress:open",
|
||||
"open": "run-p start cypress:open",
|
||||
"report": "npx nyc report",
|
||||
@@ -105,6 +108,7 @@
|
||||
"axe-core": "^3.4.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
|
||||
"coffeescript": "^2.4.1",
|
||||
"copyfiles": "^2.1.1",
|
||||
"core-js-bundle": "^3.4.2",
|
||||
"cypress": "^3.6.1",
|
||||
"cypress-axe": "^0.5.1",
|
||||
@@ -126,6 +130,7 @@
|
||||
"eslint-plugin-sonarjs": "^0.5.0",
|
||||
"eslint-plugin-standard": "4.0.1",
|
||||
"eslint-plugin-unicorn": "^13.0.0",
|
||||
"frs-replace": "^2.0.1",
|
||||
"imageoptim-cli": "^3.0.2",
|
||||
"jamilih": "^0.46.0",
|
||||
"jsdoc": "^3.6.3",
|
||||
|
||||
Reference in New Issue
Block a user