fix tests

This commit is contained in:
JFH
2021-03-09 22:54:05 +01:00
parent 24041ab073
commit 811dc5ae5b
6 changed files with 24284 additions and 2666 deletions

View File

@@ -14,7 +14,6 @@
},
"scripts": {
"lint": "eslint --ext js,html,md .",
"lint-arg": "eslint --ext js,html,md",
"test": "run-s cypress:instrument test-only",
"build": "rollup -c",
"build:watch": "rollup -c --watch",
@@ -50,9 +49,6 @@
"open-cov": "run-p start open-cov-no-start",
"report": "run-s report-no-mochawesome mochawesome-cli",
"report-summary": "run-s report-text-summary mochawesome-cli-dot",
"license-badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
"license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
"license-badges": "run-s license-badge license-badge-dev",
"coverage-badge": "coveradge badges/coverage-badge",
"imageoptim": "imageoptim",
"compress-images": "imageoptim \"src/editor/extensions/*.png\" \"src/editor/spinbtn/*.png\" \"src/editor/jgraduate/images/*.{png,gif}\" \"src/editor/images/*.png\"",
@@ -75,31 +71,6 @@
"test-no-cov": "run-s prep test-only",
"test-no-core-rollup": "run-s eslint cypress:instrument test-no-cov-no-core-rollup"
},
"lint-staged": {
".eslintignore": "npm run lint",
".eslintrc.js": "npm run lint",
"src/**/*.{js,md,html}": "npm run lint-arg --",
"src/editor/images/*.png": "npm run imageoptim --"
},
"run-if-changed": {
"src": "npm run prep-no-eslint",
".babelrc.json": "npm run prep-no-eslint",
"rollup.config.js": "npm run prep-no-eslint",
"rollup-config.config.js": "npm run prep-no-eslint",
"build": "npm run build-html",
"docs": "npm run build-docs",
"licenseInfo.json": "npm run license-badges",
"package-lock.json": "run-s install-offline license-badges copy prep-no-eslint build-docs"
},
"husky": {
"hooks": {
"post-commit": "run-if-changed",
"post-checkout": "run-if-changed",
"post-merge": "run-if-changed",
"post-rewrite": "run-if-changed",
"pre-commit": "lint-staged"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/SVG-Edit/svgedit.git"
@@ -138,19 +109,19 @@
"@babel/polyfill": "7.12.1",
"@web/dev-server-rollup": "0.3.2",
"canvg": "3.0.7",
"core-js": "3.9.0",
"core-js": "3.9.1",
"elix": "^15.0.0",
"jspdf": "2.3.0",
"jspdf": "2.3.1",
"pathseg": "1.2.0",
"regenerator-runtime": "0.13.7",
"rollup-plugin-polyfill-node": "^0.5.0",
"rollup-plugin-polyfill-node": "^0.6.1",
"svg2pdf.js": "2.1.0"
},
"devDependencies": {
"@babel/core": "7.13.1",
"@babel/preset-env": "7.13.5",
"@babel/register": "7.13.0",
"@babel/runtime-corejs3": "7.13.6",
"@babel/core": "7.13.10",
"@babel/preset-env": "7.13.10",
"@babel/register": "7.13.8",
"@babel/runtime-corejs3": "7.13.10",
"@cypress/code-coverage": "3.9.2",
"@cypress/fiddle": "1.19.2",
"@fintechstudios/eslint-plugin-chai-as-promised": "3.0.2",
@@ -163,19 +134,19 @@
"@rollup/plugin-replace": "2.4.1",
"@rollup/plugin-url": "6.0.0",
"@web/dev-server": "^0.1.8",
"axe-core": "4.1.2",
"axe-core": "4.1.3",
"babel-plugin-transform-object-rest-spread": "7.0.0-beta.3",
"copyfiles": "2.4.1",
"core-js-bundle": "3.9.0",
"core-js-bundle": "3.9.1",
"coveradge": "0.6.0",
"cp-cli": "2.0.0",
"cross-var": "1.1.0",
"cypress": "6.5.0",
"cypress": "6.6.0",
"cypress-axe": "0.12.2",
"cypress-multi-reporters": "1.4.0",
"cypress-plugin-snapshots": "1.4.4",
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
"eslint": "^7.20.0",
"eslint": "^7.21.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-array-func": "3.1.7",
"eslint-plugin-chai-expect": "2.2.0",
@@ -184,11 +155,11 @@
"eslint-plugin-compat": "^3.9.0",
"eslint-plugin-cypress": "2.11.2",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-html": "^6.1.1",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^32.2.0",
"eslint-plugin-markdown": "^2.0.0",
"eslint-plugin-mocha": "8.0.0",
"eslint-plugin-mocha": "8.1.0",
"eslint-plugin-mocha-cleanup": "1.9.1",
"eslint-plugin-no-unsanitized": "^3.1.4",
"eslint-plugin-no-use-extend-native": "0.5.0",
@@ -197,12 +168,10 @@
"eslint-plugin-sonarjs": "^0.6.0",
"eslint-plugin-standard": "4.1.0",
"eslint-plugin-unicorn": "28.0.2",
"husky": "5.1.1",
"imageoptim-cli": "3.0.2",
"jamilih": "0.54.0",
"jsdoc": "3.6.6",
"lint-staged": "10.5.4",
"mocha": "8.3.0",
"mocha": "8.3.1",
"mocha-badge-generator": "0.9.0",
"mochawesome": "6.2.2",
"mochawesome-merge": "4.2.0",
@@ -218,16 +187,16 @@
"remark-lint-ordered-list-marker-value": "2.0.1",
"requirejs": "2.3.6",
"rimraf": "3.0.2",
"rollup": "2.39.1",
"rollup": "2.41.0",
"rollup-plugin-copy": "3.4.0",
"rollup-plugin-filesize": "9.1.0",
"rollup-plugin-filesize": "9.1.1",
"rollup-plugin-node-polyfills": "0.2.1",
"rollup-plugin-progress": "1.1.2",
"rollup-plugin-re": "1.0.7",
"rollup-plugin-terser": "7.0.2",
"stackblur-canvas": "2.5.0",
"systemjs": "6.8.3",
"typescript": "4.2.2",
"typescript": "4.2.3",
"underscore": "1.12.0"
}
}