From 92a60ee41c68c3668b56e1782d5ac8b6b06ccc4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Fri, 5 Jan 2024 10:36:32 +0100 Subject: [PATCH] set mocha options in all packages --- packages/browser-logs/package.json | 5 +++++ packages/config-loader/package.json | 5 +++++ packages/dev-server-core/package.json | 5 +++++ packages/dev-server-esbuild/package.json | 5 +++++ packages/dev-server-hmr/package.json | 5 +++++ packages/dev-server-import-maps/package.json | 5 +++++ packages/dev-server-legacy/package.json | 5 +++++ packages/dev-server-polyfill/package.json | 5 +++++ packages/dev-server-rollup/package.json | 5 +++++ packages/dev-server-storybook/package.json | 5 +++++ packages/dev-server/package.json | 5 +++++ packages/mocks/package.json | 5 +++++ packages/parse5-utils/package.json | 5 +++++ packages/polyfills-loader/package.json | 5 +++++ packages/rollup-plugin-copy/package.json | 7 ++++++- packages/rollup-plugin-html/package.json | 5 +++++ packages/rollup-plugin-import-meta-assets/package.json | 7 ++++++- packages/rollup-plugin-polyfills-loader/package.json | 5 +++++ packages/rollup-plugin-workbox/package.json | 7 ++++++- packages/storybook-builder/package.json | 5 +++++ packages/storybook-framework-web-components/package.json | 5 +++++ packages/storybook-utils/package.json | 5 +++++ packages/test-runner-browserstack/package.json | 5 +++++ packages/test-runner-chrome/package.json | 5 +++++ packages/test-runner-cli/package.json | 7 ++++++- packages/test-runner-commands/package.json | 5 +++++ packages/test-runner-core/package.json | 5 +++++ packages/test-runner-coverage-v8/package.json | 5 +++++ packages/test-runner-junit-reporter/package.json | 5 +++++ packages/test-runner-mocha/package.json | 5 +++++ packages/test-runner-module-mocking/package.json | 5 +++++ packages/test-runner-playwright/package.json | 5 +++++ packages/test-runner-puppeteer/package.json | 5 +++++ packages/test-runner-saucelabs/package.json | 5 +++++ packages/test-runner-selenium/package.json | 5 +++++ packages/test-runner-visual-regression/package.json | 5 +++++ packages/test-runner-webdriver/package.json | 5 +++++ packages/test-runner/package.json | 5 +++++ 38 files changed, 194 insertions(+), 4 deletions(-) diff --git a/packages/browser-logs/package.json b/packages/browser-logs/package.json index ca0f4cef0..277d13cf2 100644 --- a/packages/browser-logs/package.json +++ b/packages/browser-logs/package.json @@ -52,5 +52,10 @@ "devDependencies": { "@esm-bundle/chai": "^4.1.5", "puppeteer": "^21.5.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/config-loader/package.json b/packages/config-loader/package.json index 244922f5b..afbe08b71 100644 --- a/packages/config-loader/package.json +++ b/packages/config-loader/package.json @@ -46,5 +46,10 @@ "import": "./index.mjs", "require": "./src/index.js" } + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-core/package.json b/packages/dev-server-core/package.json index 8b6dd4d32..4f11492b9 100644 --- a/packages/dev-server-core/package.json +++ b/packages/dev-server-core/package.json @@ -88,5 +88,10 @@ "express": "^4.18.2", "nanoid": "^3.1.25", "portfinder": "^1.0.32" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-esbuild/package.json b/packages/dev-server-esbuild/package.json index 26a368585..b7a63579e 100644 --- a/packages/dev-server-esbuild/package.json +++ b/packages/dev-server-esbuild/package.json @@ -63,5 +63,10 @@ "@web/dev-server-rollup": "^0.6.1", "lit-element": "^3.0.0 || ^4.0.1", "preact": "^10.5.9" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-hmr/package.json b/packages/dev-server-hmr/package.json index d7ccc1bbf..fa603063e 100644 --- a/packages/dev-server-hmr/package.json +++ b/packages/dev-server-hmr/package.json @@ -46,5 +46,10 @@ "devDependencies": { "lit-html": "^2.7.3 || ^3.0.0", "puppeteer": "^20.0.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-import-maps/package.json b/packages/dev-server-import-maps/package.json index 2f6e3d2f9..e8b99380c 100644 --- a/packages/dev-server-import-maps/package.json +++ b/packages/dev-server-import-maps/package.json @@ -60,5 +60,10 @@ }, "devDependencies": { "@web/test-runner": "^0.18.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-legacy/package.json b/packages/dev-server-legacy/package.json index 0ed54d057..7fa5d8be5 100644 --- a/packages/dev-server-legacy/package.json +++ b/packages/dev-server-legacy/package.json @@ -73,5 +73,10 @@ "@types/browserslist-useragent": "^3.0.2", "@types/caniuse-api": "^3.0.1", "@types/valid-url": "^1.0.3" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-polyfill/package.json b/packages/dev-server-polyfill/package.json index 77cd2a624..3ed283b90 100644 --- a/packages/dev-server-polyfill/package.json +++ b/packages/dev-server-polyfill/package.json @@ -40,5 +40,10 @@ "dependencies": { "@web/dev-server": "^0.4.0", "@web/polyfills-loader": "^2.2.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-rollup/package.json b/packages/dev-server-rollup/package.json index 4ec3268fd..e673a737f 100644 --- a/packages/dev-server-rollup/package.json +++ b/packages/dev-server-rollup/package.json @@ -70,5 +70,10 @@ "mocha": "^10.2.0", "postcss": "^8.4.31", "rollup-plugin-postcss": "^4.0.2" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server-storybook/package.json b/packages/dev-server-storybook/package.json index 4280f768c..535835d0f 100644 --- a/packages/dev-server-storybook/package.json +++ b/packages/dev-server-storybook/package.json @@ -77,5 +77,10 @@ "@types/path-is-inside": "^1.0.0", "@web/dev-server": "^0.4.0", "htm": "^3.1.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/dev-server/package.json b/packages/dev-server/package.json index 7d8165f27..ef983b0fa 100644 --- a/packages/dev-server/package.json +++ b/packages/dev-server/package.json @@ -75,5 +75,10 @@ "@types/command-line-usage": "^5.0.1", "lit-html": "^2.7.3 || ^3.0.0", "puppeteer": "^20.0.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/mocks/package.json b/packages/mocks/package.json index f32b6cd4b..3b27d8178 100644 --- a/packages/mocks/package.json +++ b/packages/mocks/package.json @@ -85,5 +85,10 @@ ], "dependencies": [] } + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/parse5-utils/package.json b/packages/parse5-utils/package.json index 39c2cb0c2..2d79a9649 100644 --- a/packages/parse5-utils/package.json +++ b/packages/parse5-utils/package.json @@ -48,5 +48,10 @@ }, "devDependencies": { "@types/html-minifier-terser": "^7.0.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/polyfills-loader/package.json b/packages/polyfills-loader/package.json index 5445526fe..123f76c7f 100644 --- a/packages/polyfills-loader/package.json +++ b/packages/polyfills-loader/package.json @@ -71,5 +71,10 @@ "@types/babel__core": "^7.1.12", "@types/parse5": "^6.0.1", "@types/valid-url": "^1.0.3" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/rollup-plugin-copy/package.json b/packages/rollup-plugin-copy/package.json index 699fdda8d..0938b5873 100644 --- a/packages/rollup-plugin-copy/package.json +++ b/packages/rollup-plugin-copy/package.json @@ -51,5 +51,10 @@ "devDependencies": { "@types/glob": "^8.1.0" }, - "types": "dist/copy.d.ts" + "types": "dist/copy.d.ts", + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 + } } diff --git a/packages/rollup-plugin-html/package.json b/packages/rollup-plugin-html/package.json index 421de6389..4737c7597 100644 --- a/packages/rollup-plugin-html/package.json +++ b/packages/rollup-plugin-html/package.json @@ -53,5 +53,10 @@ "devDependencies": { "@types/html-minifier-terser": "^7.0.0", "rollup": "^4.4.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/rollup-plugin-import-meta-assets/package.json b/packages/rollup-plugin-import-meta-assets/package.json index 58fc20a5b..85c27c960 100644 --- a/packages/rollup-plugin-import-meta-assets/package.json +++ b/packages/rollup-plugin-import-meta-assets/package.json @@ -48,5 +48,10 @@ "globby": "^13.2.2", "magic-string": "^0.30.0" }, - "types": "dist/index" + "types": "dist/index", + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 + } } diff --git a/packages/rollup-plugin-polyfills-loader/package.json b/packages/rollup-plugin-polyfills-loader/package.json index 1a823e2a9..1a23d4fe7 100644 --- a/packages/rollup-plugin-polyfills-loader/package.json +++ b/packages/rollup-plugin-polyfills-loader/package.json @@ -51,5 +51,10 @@ "devDependencies": { "@web/rollup-plugin-html": "^2.1.2", "rollup": "^4.4.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/rollup-plugin-workbox/package.json b/packages/rollup-plugin-workbox/package.json index 11d3c71ec..e6b2ce175 100644 --- a/packages/rollup-plugin-workbox/package.json +++ b/packages/rollup-plugin-workbox/package.json @@ -40,5 +40,10 @@ "contributors": [ "Pascal Schilp ", "Benny Powers " - ] + ], + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 + } } diff --git a/packages/storybook-builder/package.json b/packages/storybook-builder/package.json index 1cec50039..2530e9486 100644 --- a/packages/storybook-builder/package.json +++ b/packages/storybook-builder/package.json @@ -83,5 +83,10 @@ "prettier": "^2.4.1", "prettier-plugin-package": "^1.3.0", "typescript": "~5.0.4" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/storybook-framework-web-components/package.json b/packages/storybook-framework-web-components/package.json index 15d084bd4..eb030d7c4 100644 --- a/packages/storybook-framework-web-components/package.json +++ b/packages/storybook-framework-web-components/package.json @@ -70,5 +70,10 @@ "prettier": "^2.4.1", "prettier-plugin-package": "^1.3.0", "typescript": "~5.0.4" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/storybook-utils/package.json b/packages/storybook-utils/package.json index dc09972c2..793ad6714 100644 --- a/packages/storybook-utils/package.json +++ b/packages/storybook-utils/package.json @@ -47,5 +47,10 @@ }, "devDependencies": { "react": "^18.0.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-browserstack/package.json b/packages/test-runner-browserstack/package.json index ca0ab6767..23f9771fb 100644 --- a/packages/test-runner-browserstack/package.json +++ b/packages/test-runner-browserstack/package.json @@ -56,5 +56,10 @@ "@types/ip": "^1.1.0", "@web/dev-server-legacy": "^2.1.0", "portfinder": "^1.0.32" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-chrome/package.json b/packages/test-runner-chrome/package.json index a8603fa29..575d1f356 100644 --- a/packages/test-runner-chrome/package.json +++ b/packages/test-runner-chrome/package.json @@ -56,5 +56,10 @@ "devDependencies": { "@types/istanbul-reports": "^3.0.0", "@web/test-runner-mocha": "^0.9.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-cli/package.json b/packages/test-runner-cli/package.json index 5a8637f0e..ae8a4ec7c 100644 --- a/packages/test-runner-cli/package.json +++ b/packages/test-runner-cli/package.json @@ -44,5 +44,10 @@ "terminal", "console", "CLI" - ] + ], + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 + } } diff --git a/packages/test-runner-commands/package.json b/packages/test-runner-commands/package.json index 19d292e0f..5e499d462 100644 --- a/packages/test-runner-commands/package.json +++ b/packages/test-runner-commands/package.json @@ -58,5 +58,10 @@ "@web/test-runner-playwright": "^0.11.0", "@web/test-runner-webdriver": "^0.8.0", "mocha": "^10.2.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-core/package.json b/packages/test-runner-core/package.json index c8a1fc658..33b46b1e2 100644 --- a/packages/test-runner-core/package.json +++ b/packages/test-runner-core/package.json @@ -82,5 +82,10 @@ }, "devDependencies": { "portfinder": "^1.0.32" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-coverage-v8/package.json b/packages/test-runner-coverage-v8/package.json index 0352ba7cc..eb756c835 100644 --- a/packages/test-runner-coverage-v8/package.json +++ b/packages/test-runner-coverage-v8/package.json @@ -53,5 +53,10 @@ "devDependencies": { "@types/istanbul-lib-coverage": "^2.0.3", "@types/picomatch": "^2.2.1" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-junit-reporter/package.json b/packages/test-runner-junit-reporter/package.json index a7a24d46e..de65fc362 100644 --- a/packages/test-runner-junit-reporter/package.json +++ b/packages/test-runner-junit-reporter/package.json @@ -54,5 +54,10 @@ "devDependencies": { "@types/xml": "^1.0.11", "@web/test-runner-playwright": "^0.11.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-mocha/package.json b/packages/test-runner-mocha/package.json index d50a873c5..3fea3fef5 100644 --- a/packages/test-runner-mocha/package.json +++ b/packages/test-runner-mocha/package.json @@ -42,5 +42,10 @@ "@types/mocha": "^10.0.1", "deepmerge": "^4.2.2", "mocha": "^10.2.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-module-mocking/package.json b/packages/test-runner-module-mocking/package.json index ada4d4e0b..aecbc4486 100644 --- a/packages/test-runner-module-mocking/package.json +++ b/packages/test-runner-module-mocking/package.json @@ -54,5 +54,10 @@ "devDependencies": { "@web/test-runner-chrome": "^0.15.0", "@web/test-runner-core": "^0.13.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-playwright/package.json b/packages/test-runner-playwright/package.json index 82b13683b..e9262d410 100644 --- a/packages/test-runner-playwright/package.json +++ b/packages/test-runner-playwright/package.json @@ -54,5 +54,10 @@ "devDependencies": { "@web/test-runner-mocha": "^0.9.0", "portfinder": "^1.0.32" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-puppeteer/package.json b/packages/test-runner-puppeteer/package.json index 35a1be9cc..e6931fa2c 100644 --- a/packages/test-runner-puppeteer/package.json +++ b/packages/test-runner-puppeteer/package.json @@ -54,5 +54,10 @@ "devDependencies": { "@web/test-runner-mocha": "^0.9.0", "puppeteer-core": "^20.0.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-saucelabs/package.json b/packages/test-runner-saucelabs/package.json index 91319cd39..b132ba9bb 100644 --- a/packages/test-runner-saucelabs/package.json +++ b/packages/test-runner-saucelabs/package.json @@ -59,5 +59,10 @@ "@web/dev-server-esbuild": "^1.0.0", "@web/dev-server-legacy": "^2.1.0", "portfinder": "^1.0.32" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-selenium/package.json b/packages/test-runner-selenium/package.json index 20c0e6f27..07eb72108 100644 --- a/packages/test-runner-selenium/package.json +++ b/packages/test-runner-selenium/package.json @@ -55,5 +55,10 @@ "@types/selenium-standalone": "^7.0.1", "@types/selenium-webdriver": "^4.0.11", "selenium-standalone": "^8.0.4" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-visual-regression/package.json b/packages/test-runner-visual-regression/package.json index c6e0398b4..9362fd5fe 100644 --- a/packages/test-runner-visual-regression/package.json +++ b/packages/test-runner-visual-regression/package.json @@ -64,5 +64,10 @@ "@web/test-runner-playwright": "^0.11.0", "@web/test-runner-webdriver": "^0.8.0", "mocha": "^10.2.0" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner-webdriver/package.json b/packages/test-runner-webdriver/package.json index 10c180966..20051e372 100644 --- a/packages/test-runner-webdriver/package.json +++ b/packages/test-runner-webdriver/package.json @@ -55,5 +55,10 @@ "devDependencies": { "@types/selenium-standalone": "^7.0.1", "selenium-standalone": "^8.0.4" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } } diff --git a/packages/test-runner/package.json b/packages/test-runner/package.json index 846d7139c..cb790e956 100644 --- a/packages/test-runner/package.json +++ b/packages/test-runner/package.json @@ -102,5 +102,10 @@ "@web/test-runner-saucelabs": "^0.11.0", "babel-plugin-istanbul": "^6.0.0", "concurrently": "^8.0.1" + }, + "mocha": { + "loader": "ts-node/esm", + "exit": true, + "retries": 3 } }