diff --git a/packages/astro-rss/package.json b/packages/astro-rss/package.json index c200e6c59..84993fb4c 100644 --- a/packages/astro-rss/package.json +++ b/packages/astro-rss/package.json @@ -24,7 +24,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000" + "test": "mocha --exit --retries 3 --timeout 20000" }, "devDependencies": { "@types/chai": "^4.3.5", diff --git a/packages/astro/package.json b/packages/astro/package.json index 33bf6eb4f..98d3a6177 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -114,7 +114,7 @@ "postbuild": "astro-scripts copy \"src/**/*.astro\" && astro-scripts copy \"src/**/*.wasm\"", "test:unit": "mocha --exit --timeout 30000 ./test/units/**/*.test.js", "test:unit:match": "mocha --exit --timeout 30000 ./test/units/**/*.test.js -g", - "test": "pnpm run test:unit && mocha --exit --timeout 30000 --ignore **/lit-element.test.js && mocha --timeout 30000 **/lit-element.test.js", + "test": "pnpm run test:unit && mocha --exit --timeout 30000 --retries 3 --ignore **/lit-element.test.js && mocha --timeout 30000 **/lit-element.test.js", "test:match": "mocha --timeout 30000 -g", "test:e2e": "playwright test", "test:e2e:match": "playwright test -g" diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index e7c1afb09..0ad9e80c1 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -22,7 +22,7 @@ "build": "astro-scripts build \"src/index.ts\" --bundle && tsc", "build:ci": "astro-scripts build \"src/index.ts\" --bundle", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000 --parallel" + "test": "mocha --exit --retries 3 --timeout 20000 --parallel" }, "files": [ "dist", diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index b7ecc2c69..6a896352b 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -30,7 +30,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 30000 test/", + "test": "mocha --exit --retries 3 --timeout 30000 test/", "test:match": "mocha --exit --timeout 30000 -g" }, "dependencies": { diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 24bbd1717..a8619ff74 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -39,7 +39,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha" + "test": "mocha --exit --retries 3" }, "dependencies": { "@lit-labs/ssr": "^3.1.5", diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index e7e5eaee0..68eaa212b 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -59,7 +59,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000", + "test": "mocha --exit --retries 3 --timeout 20000", "test:match": "mocha --timeout 20000 -g" }, "dependencies": { diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 2e90eda93..8fbc4d39f 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -30,7 +30,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000", + "test": "mocha --exit --retries 3 --timeout 20000", "test:match": "mocha --timeout 20000 -g" }, "dependencies": { diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index 6b896706d..1cd227dfe 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -30,7 +30,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000 test/" + "test": "mocha --exit --retries 3 --timeout 20000 test/" }, "dependencies": { "send": "^0.18.0", diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index 2cdfa4100..9ac9f56d9 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -30,7 +30,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --timeout 20000" + "test": "mocha --exit --retries 3 --timeout 20000" }, "dependencies": { "sitemap": "^7.1.1", diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index b10ec83df..267c18642 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -48,7 +48,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000 --file \"./test/setup.js\" test/ --ignore test/hosted", + "test": "mocha --exit --retries 3 --timeout 20000 --file \"./test/setup.js\" test/ --ignore test/hosted", "test:hosted": "mocha --exit --timeout 30000 test/hosted" }, "dependencies": { diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index f50cdd01d..2222c0109 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -37,7 +37,7 @@ "build": "astro-scripts build \"src/index.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --timeout 20000" + "test": "mocha --exit --retries 3 --timeout 20000" }, "dependencies": { "@vitejs/plugin-vue": "^4.3.3", diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 8a3b22236..4fa93d991 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -25,7 +25,7 @@ "build:ci": "astro-scripts build \"src/**/*.ts\"", "postbuild": "astro-scripts copy \"src/**/*.js\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000" + "test": "mocha --exit --retries 3 --timeout 20000" }, "peerDependencies": { "astro": "workspace:^3.2.3" diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index e0230b9d5..46ea87c7c 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -23,7 +23,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000 test/" + "test": "mocha --exit --retries 3 --timeout 20000 test/" }, "files": [ "dist" diff --git a/packages/underscore-redirects/package.json b/packages/underscore-redirects/package.json index 1325d4c8e..b73a95ef4 100644 --- a/packages/underscore-redirects/package.json +++ b/packages/underscore-redirects/package.json @@ -25,7 +25,7 @@ "build:ci": "astro-scripts build \"src/**/*.ts\"", "postbuild": "astro-scripts copy \"src/**/*.js\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000" + "test": "mocha --exit --retries 3 --timeout 20000" }, "devDependencies": { "@types/chai": "^4.3.5",