Skip to content

Commit

Permalink
set mocha options in all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jan 5, 2024
1 parent 0318a08 commit 92a60ee
Show file tree
Hide file tree
Showing 38 changed files with 194 additions and 4 deletions.
5 changes: 5 additions & 0 deletions packages/browser-logs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,10 @@
"devDependencies": {
"@esm-bundle/chai": "^4.1.5",
"puppeteer": "^21.5.0"
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/config-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@
"import": "./index.mjs",
"require": "./src/index.js"
}
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-import-maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,10 @@
},
"devDependencies": {
"@web/test-runner": "^0.18.0"
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-polyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,10 @@
],
"dependencies": []
}
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/parse5-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@
},
"devDependencies": {
"@types/html-minifier-terser": "^7.0.0"
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/polyfills-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
7 changes: 6 additions & 1 deletion packages/rollup-plugin-copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/rollup-plugin-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
7 changes: 6 additions & 1 deletion packages/rollup-plugin-import-meta-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/rollup-plugin-polyfills-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
7 changes: 6 additions & 1 deletion packages/rollup-plugin-workbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@
"contributors": [
"Pascal Schilp <[email protected]>",
"Benny Powers <[email protected]>"
]
],
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/storybook-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/storybook-framework-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/storybook-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@
},
"devDependencies": {
"react": "^18.0.0"
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-browserstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
7 changes: 6 additions & 1 deletion packages/test-runner-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
"terminal",
"console",
"CLI"
]
],
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,10 @@
},
"devDependencies": {
"portfinder": "^1.0.32"
},
"mocha": {
"loader": "ts-node/esm",
"exit": true,
"retries": 3
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-coverage-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-junit-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-mocha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-module-mocking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-saucelabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-selenium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions packages/test-runner-visual-regression/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Loading

0 comments on commit 92a60ee

Please sign in to comment.