From 0cae4ddd74e3304802f2eb9b53fc6778f1293c6c Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Mon, 16 Sep 2024 15:19:32 -0700 Subject: [PATCH] test: use Ava default files glob by default Ava expects everything in `test` to be a test, unless it starts with an underscore --- packages/base64/package.json | 3 --- packages/base64/test/{bench-main.js => _bench-main.js} | 0 .../test/{capture-atob-btoa.js => _capture-atob-btoa.js} | 0 packages/base64/test/main.test.js | 2 +- packages/captp/package.json | 3 --- packages/check-bundle/package.json | 3 --- packages/cjs-module-analyzer/package.json | 3 --- packages/cli/package.json | 3 --- packages/common/package.json | 3 --- packages/compartment-mapper/package.json | 3 --- packages/daemon/package.json | 3 --- packages/env-options/package.json | 3 --- packages/errors/package.json | 3 --- packages/evasive-transform/package.json | 3 --- packages/eventual-send/package.json | 3 --- packages/exo/package.json | 3 --- packages/far/package.json | 3 --- packages/immutable-arraybuffer/package.json | 3 --- packages/import-bundle/package.json | 3 --- packages/lp32/package.json | 3 --- packages/marshal/package.json | 3 --- packages/memoize/package.json | 3 --- packages/module-source/package.json | 3 --- packages/netstring/package.json | 3 --- packages/pass-style/package.json | 3 --- packages/patterns/package.json | 3 --- packages/promise-kit/package.json | 3 --- packages/ses-ava/package.json | 3 --- packages/ses/package.json | 3 --- packages/skel/package.json | 3 --- packages/stream-node/package.json | 3 --- packages/stream/package.json | 3 --- packages/syrup/package.json | 3 --- packages/where/package.json | 3 --- packages/zip/package.json | 3 --- 35 files changed, 1 insertion(+), 97 deletions(-) rename packages/base64/test/{bench-main.js => _bench-main.js} (100%) rename packages/base64/test/{capture-atob-btoa.js => _capture-atob-btoa.js} (100%) diff --git a/packages/base64/package.json b/packages/base64/package.json index edb773066f..62e6694b2f 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -73,9 +73,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/base64/test/bench-main.js b/packages/base64/test/_bench-main.js similarity index 100% rename from packages/base64/test/bench-main.js rename to packages/base64/test/_bench-main.js diff --git a/packages/base64/test/capture-atob-btoa.js b/packages/base64/test/_capture-atob-btoa.js similarity index 100% rename from packages/base64/test/capture-atob-btoa.js rename to packages/base64/test/_capture-atob-btoa.js diff --git a/packages/base64/test/main.test.js b/packages/base64/test/main.test.js index 5051fda520..7dad0e13ad 100644 --- a/packages/base64/test/main.test.js +++ b/packages/base64/test/main.test.js @@ -1,5 +1,5 @@ import test from 'ava'; -import { atob as origAtob, btoa as origBtoa } from './capture-atob-btoa.js'; +import { atob as origAtob, btoa as origBtoa } from './_capture-atob-btoa.js'; import { encodeBase64, decodeBase64, atob, btoa } from '../index.js'; /** diff --git a/packages/captp/package.json b/packages/captp/package.json index b9ca6a39d2..7ff9b0a1ac 100644 --- a/packages/captp/package.json +++ b/packages/captp/package.json @@ -71,9 +71,6 @@ "access": "public" }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "eslintConfig": { diff --git a/packages/check-bundle/package.json b/packages/check-bundle/package.json index 8f5af31909..30abba4ccf 100644 --- a/packages/check-bundle/package.json +++ b/packages/check-bundle/package.json @@ -79,9 +79,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/cjs-module-analyzer/package.json b/packages/cjs-module-analyzer/package.json index 56e658a166..edb917a6ea 100644 --- a/packages/cjs-module-analyzer/package.json +++ b/packages/cjs-module-analyzer/package.json @@ -63,9 +63,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 3e439cdb93..5f695cb59c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -81,9 +81,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/common/package.json b/packages/common/package.json index b51072011b..f7aafba2b1 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -73,9 +73,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" } } diff --git a/packages/compartment-mapper/package.json b/packages/compartment-mapper/package.json index 64d072fa72..2fb3369725 100644 --- a/packages/compartment-mapper/package.json +++ b/packages/compartment-mapper/package.json @@ -104,9 +104,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/daemon/package.json b/packages/daemon/package.json index 42d4ae83a2..f449928a75 100644 --- a/packages/daemon/package.json +++ b/packages/daemon/package.json @@ -98,9 +98,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/env-options/package.json b/packages/env-options/package.json index 6716b9dec2..c4974d353e 100644 --- a/packages/env-options/package.json +++ b/packages/env-options/package.json @@ -79,9 +79,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/errors/package.json b/packages/errors/package.json index 2d9c98b36b..299890064e 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -67,9 +67,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/evasive-transform/package.json b/packages/evasive-transform/package.json index 80e7835ecd..fe5f3cd2bc 100644 --- a/packages/evasive-transform/package.json +++ b/packages/evasive-transform/package.json @@ -72,9 +72,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "dependencies": { diff --git a/packages/eventual-send/package.json b/packages/eventual-send/package.json index b032f5e55e..fca19696ff 100644 --- a/packages/eventual-send/package.json +++ b/packages/eventual-send/package.json @@ -69,9 +69,6 @@ "access": "public" }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/exo/package.json b/packages/exo/package.json index 52c3520c25..9e159524ef 100644 --- a/packages/exo/package.json +++ b/packages/exo/package.json @@ -74,9 +74,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/far/package.json b/packages/far/package.json index f4c799d0b4..3c4a822a92 100644 --- a/packages/far/package.json +++ b/packages/far/package.json @@ -71,9 +71,6 @@ "access": "public" }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/immutable-arraybuffer/package.json b/packages/immutable-arraybuffer/package.json index a699a42282..cf34b2ebbf 100644 --- a/packages/immutable-arraybuffer/package.json +++ b/packages/immutable-arraybuffer/package.json @@ -62,9 +62,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" } } diff --git a/packages/import-bundle/package.json b/packages/import-bundle/package.json index cbe8b53f81..34d90f49ca 100644 --- a/packages/import-bundle/package.json +++ b/packages/import-bundle/package.json @@ -73,9 +73,6 @@ "access": "public" }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/lp32/package.json b/packages/lp32/package.json index f79e276a59..93ff95c746 100644 --- a/packages/lp32/package.json +++ b/packages/lp32/package.json @@ -88,9 +88,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/marshal/package.json b/packages/marshal/package.json index 1d0f7fa2b0..add2dc3fae 100644 --- a/packages/marshal/package.json +++ b/packages/marshal/package.json @@ -77,9 +77,6 @@ "access": "public" }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/memoize/package.json b/packages/memoize/package.json index a040cfc0db..9f3778718f 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -69,9 +69,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/module-source/package.json b/packages/module-source/package.json index 22b1748454..e88d31f458 100644 --- a/packages/module-source/package.json +++ b/packages/module-source/package.json @@ -76,9 +76,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/netstring/package.json b/packages/netstring/package.json index 2dd3ff5f7d..c83307311f 100644 --- a/packages/netstring/package.json +++ b/packages/netstring/package.json @@ -72,9 +72,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/pass-style/package.json b/packages/pass-style/package.json index 01e5d7d8c3..7494e98954 100644 --- a/packages/pass-style/package.json +++ b/packages/pass-style/package.json @@ -73,9 +73,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/patterns/package.json b/packages/patterns/package.json index d9a8dbbe48..c924bd2136 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -71,9 +71,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/promise-kit/package.json b/packages/promise-kit/package.json index 2e8289de92..7564078074 100644 --- a/packages/promise-kit/package.json +++ b/packages/promise-kit/package.json @@ -72,9 +72,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "engines": { diff --git a/packages/ses-ava/package.json b/packages/ses-ava/package.json index 7a6f7319cb..e226ba6144 100644 --- a/packages/ses-ava/package.json +++ b/packages/ses-ava/package.json @@ -76,9 +76,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/ses/package.json b/packages/ses/package.json index be4daecbfd..dbc38b2d1b 100644 --- a/packages/ses/package.json +++ b/packages/ses/package.json @@ -191,9 +191,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/skel/package.json b/packages/skel/package.json index 4c31f30e68..c6f1184435 100644 --- a/packages/skel/package.json +++ b/packages/skel/package.json @@ -63,9 +63,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" } } diff --git a/packages/stream-node/package.json b/packages/stream-node/package.json index 90e8eb3aa4..9949986225 100644 --- a/packages/stream-node/package.json +++ b/packages/stream-node/package.json @@ -80,9 +80,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/stream/package.json b/packages/stream/package.json index 19c43d5425..3543b1eca7 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -83,9 +83,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/syrup/package.json b/packages/syrup/package.json index 2beb862a7a..841838e43b 100644 --- a/packages/syrup/package.json +++ b/packages/syrup/package.json @@ -68,9 +68,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/where/package.json b/packages/where/package.json index 2178fccd63..f2b4ac7e3d 100644 --- a/packages/where/package.json +++ b/packages/where/package.json @@ -68,9 +68,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": { diff --git a/packages/zip/package.json b/packages/zip/package.json index 77b301f5ca..3aa224ef31 100644 --- a/packages/zip/package.json +++ b/packages/zip/package.json @@ -69,9 +69,6 @@ ] }, "ava": { - "files": [ - "test/**/*.test.*" - ], "timeout": "2m" }, "typeCoverage": {