diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 4bcb2b191b4..d54d1466f19 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -127,7 +127,7 @@ module.exports = { { // These tests use EV() instead of E(), which are easy to confuse. // Help by erroring when E() packages are imported. - files: ['packages/boot/test/**/test-*'], + files: ['packages/boot/test/**/*.test.*'], rules: { 'no-restricted-imports': [ 'error', diff --git a/.github/workflows/test-all-packages.yml b/.github/workflows/test-all-packages.yml index 6b1d17313a4..51e109e4c7e 100644 --- a/.github/workflows/test-all-packages.yml +++ b/.github/workflows/test-all-packages.yml @@ -498,7 +498,7 @@ jobs: # END-TEST-BOILERPLATE - name: yarn test (SwingSet) if: (success() || failure()) - run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[A-Da-d]*.js' | $TEST_COLLECT + run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[A-Da-d]*' | $TEST_COLLECT - name: notify on failure if: failure() && github.event_name != 'pull_request' uses: ./.github/actions/notify-status @@ -540,7 +540,7 @@ jobs: # END-TEST-BOILERPLATE - name: yarn test (SwingSet) if: (success() || failure()) - run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[E-Ie-i]*.js' | $TEST_COLLECT + run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[E-Ie-i]*' | $TEST_COLLECT - name: yarn test (xsnap-lockdown) if: (success() || failure()) run: cd packages/xsnap-lockdown && yarn ${{ steps.vars.outputs.test }} | $TEST_COLLECT @@ -591,7 +591,7 @@ jobs: # END-TEST-BOILERPLATE - name: yarn test (SwingSet) if: (success() || failure()) - run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[J-Rj-r]*.js' | $TEST_COLLECT + run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[J-Rj-r]*' | $TEST_COLLECT - name: notify on failure if: failure() && github.event_name != 'pull_request' uses: ./.github/actions/notify-status @@ -633,7 +633,7 @@ jobs: - name: yarn test (SwingSet) if: (success() || failure()) - run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/test-[S-Zs-z0-9]*.js' | $TEST_COLLECT + run: cd packages/SwingSet && yarn ${{ steps.vars.outputs.test }} 'test/**/[S-Zs-z0-9.test]*.js' | $TEST_COLLECT - name: notify on failure if: failure() && github.event_name != 'pull_request' uses: ./.github/actions/notify-status diff --git a/MAINTAINERS.md b/MAINTAINERS.md index a2c3d67a8ed..d7c31a6c593 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -426,8 +426,8 @@ yarn build ```sh cd packages/SwingSet -yarn test test/test-xsnap-store.js --update-snapshots -git add test/snapshots/test-xsnap-store.* +yarn test test/xsnap-store.test.js --update-snapshots +git add test/snapshots/xsnap-store.* git commit -m 'chore(swingset-vat): Update xsnap store test snapshots' cd ../.. ``` diff --git a/package.json b/package.json index 8aa07223b4a..cf75641714a 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,8 @@ }, "ava": { "files": [ - "packages/*/test/**/test-*.ts" + "packages/*/test/**/test-*.*", + "packages/*/test/**/*.test.*" ], "timeout": "30m" }, diff --git a/packages/ERTP/package.json b/packages/ERTP/package.json index 47585342f79..8749c4e0002 100644 --- a/packages/ERTP/package.json +++ b/packages/ERTP/package.json @@ -15,7 +15,7 @@ "test:c8": "c8 $C8_OPTIONS ava", "test:xs": "yarn test:xs-unit && yarn test:xs-worker", "test:xs-unit": "ava-xs", - "test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests/**/test-*.js'", + "test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 test/swingsetTests", "lint-fix": "yarn lint:eslint --fix", "lint": "run-s --continue-on-error lint:*", "lint:eslint": "eslint .", @@ -68,14 +68,15 @@ "exclude": [ "swingsetTests", "# fast-check unsupported", - "test/unitTests/test-amountProperties.js", - "test/unitTests/test-inputValidation.js", - "test/unitTests/test-issuerObj.js" + "test/unitTests/amountProperties.test.js", + "test/unitTests/inputValidation.test.js", + "test/unitTests/issuerObj.test.js" ] }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/ERTP/test/swingsetTests/basicFunctionality/test-basicFunctionality.js b/packages/ERTP/test/swingsetTests/basicFunctionality/basicFunctionality.test.js similarity index 100% rename from packages/ERTP/test/swingsetTests/basicFunctionality/test-basicFunctionality.js rename to packages/ERTP/test/swingsetTests/basicFunctionality/basicFunctionality.test.js diff --git a/packages/ERTP/test/swingsetTests/ertpService/test-ertp-service-upgrade.js b/packages/ERTP/test/swingsetTests/ertpService/ertp-service-upgrade.test.js similarity index 100% rename from packages/ERTP/test/swingsetTests/ertpService/test-ertp-service-upgrade.js rename to packages/ERTP/test/swingsetTests/ertpService/ertp-service-upgrade.test.js diff --git a/packages/ERTP/test/swingsetTests/splitPayments/test-splitPayments.js b/packages/ERTP/test/swingsetTests/splitPayments/splitPayments.test.js similarity index 100% rename from packages/ERTP/test/swingsetTests/splitPayments/test-splitPayments.js rename to packages/ERTP/test/swingsetTests/splitPayments/splitPayments.test.js diff --git a/packages/ERTP/test/unitTests/test-amountProperties.js b/packages/ERTP/test/unitTests/amountProperties.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-amountProperties.js rename to packages/ERTP/test/unitTests/amountProperties.test.js diff --git a/packages/ERTP/test/unitTests/test-inputValidation.js b/packages/ERTP/test/unitTests/inputValidation.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-inputValidation.js rename to packages/ERTP/test/unitTests/inputValidation.test.js diff --git a/packages/ERTP/test/unitTests/test-interfaces.js b/packages/ERTP/test/unitTests/interfaces.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-interfaces.js rename to packages/ERTP/test/unitTests/interfaces.test.js diff --git a/packages/ERTP/test/unitTests/test-issuerObj.js b/packages/ERTP/test/unitTests/issuerObj.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-issuerObj.js rename to packages/ERTP/test/unitTests/issuerObj.test.js diff --git a/packages/ERTP/test/unitTests/test-legacy-payment-helpers.js b/packages/ERTP/test/unitTests/legacy-payment-helpers.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-legacy-payment-helpers.js rename to packages/ERTP/test/unitTests/legacy-payment-helpers.test.js diff --git a/packages/ERTP/test/unitTests/mathHelpers/test-copyBagMathHelpers.js b/packages/ERTP/test/unitTests/mathHelpers/copyBagMathHelpers.test.js similarity index 100% rename from packages/ERTP/test/unitTests/mathHelpers/test-copyBagMathHelpers.js rename to packages/ERTP/test/unitTests/mathHelpers/copyBagMathHelpers.test.js diff --git a/packages/ERTP/test/unitTests/mathHelpers/test-copySetMathHelpers.js b/packages/ERTP/test/unitTests/mathHelpers/copySetMathHelpers.test.js similarity index 100% rename from packages/ERTP/test/unitTests/mathHelpers/test-copySetMathHelpers.js rename to packages/ERTP/test/unitTests/mathHelpers/copySetMathHelpers.test.js diff --git a/packages/ERTP/test/unitTests/mathHelpers/test-natMathHelpers.js b/packages/ERTP/test/unitTests/mathHelpers/natMathHelpers.test.js similarity index 100% rename from packages/ERTP/test/unitTests/mathHelpers/test-natMathHelpers.js rename to packages/ERTP/test/unitTests/mathHelpers/natMathHelpers.test.js diff --git a/packages/ERTP/test/unitTests/mathHelpers/test-setMathHelpers.js b/packages/ERTP/test/unitTests/mathHelpers/setMathHelpers.test.js similarity index 100% rename from packages/ERTP/test/unitTests/mathHelpers/test-setMathHelpers.js rename to packages/ERTP/test/unitTests/mathHelpers/setMathHelpers.test.js diff --git a/packages/ERTP/test/unitTests/mathHelpers/test-strSetMathHelpers.js b/packages/ERTP/test/unitTests/mathHelpers/strSetMathHelpers.test.js similarity index 100% rename from packages/ERTP/test/unitTests/mathHelpers/test-strSetMathHelpers.js rename to packages/ERTP/test/unitTests/mathHelpers/strSetMathHelpers.test.js diff --git a/packages/ERTP/test/unitTests/test-mintObj.js b/packages/ERTP/test/unitTests/mintObj.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-mintObj.js rename to packages/ERTP/test/unitTests/mintObj.test.js diff --git a/packages/ERTP/test/unitTests/test-recovery.js b/packages/ERTP/test/unitTests/recovery.test.js similarity index 100% rename from packages/ERTP/test/unitTests/test-recovery.js rename to packages/ERTP/test/unitTests/recovery.test.js diff --git a/packages/SwingSet/package.json b/packages/SwingSet/package.json index a2985df7de3..12fb6bf72ad 100644 --- a/packages/SwingSet/package.json +++ b/packages/SwingSet/package.json @@ -14,7 +14,7 @@ "build": "exit 0", "test": "ava", "test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava", - "test:xs-worker": "ava test/workers/test-worker.js -m 'xsnap vat manager'", + "test:xs-worker": "ava test/workers -m 'xsnap vat manager'", "lint-fix": "yarn lint:eslint --fix", "lint": "run-s --continue-on-error lint:*", "lint:types": "tsc", @@ -88,7 +88,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/SwingSet/src/kernel/kernel.js b/packages/SwingSet/src/kernel/kernel.js index 1807ea6e354..ae24c76fb0b 100644 --- a/packages/SwingSet/src/kernel/kernel.js +++ b/packages/SwingSet/src/kernel/kernel.js @@ -858,7 +858,7 @@ export default function buildKernel( // basically reverting 1cfbeaa3c925d0f8502edfb313ecb12a1cab5eac // and then ultimately moved to the kernel in a MUCH diminished form // (see #5342 and #6650, and testUpgrade in - // {@link ../../test/upgrade/test-upgrade.js}). + // {@link ../../test/upgrade/upgrade.test.js}). // We hope to eventually add back correct sophisticated logic // by e.g. having liveslots sweep the database when restoring a vat. @@ -1867,7 +1867,7 @@ export default function buildKernel( ); } else { // this should only happen during unit tests that are too lazy to - // build a complete kernel: test/bundles/test-bundles-kernel.js + // build a complete kernel: test/bundles/bundles-kernel.test.js console.log(`installBundle cannot notify, missing vatAdminRootKref`); } } finally { diff --git a/packages/SwingSet/test/test-abandon-export.js b/packages/SwingSet/test/abandon-export.test.js similarity index 100% rename from packages/SwingSet/test/test-abandon-export.js rename to packages/SwingSet/test/abandon-export.test.js diff --git a/packages/SwingSet/test/test-activityhash-vs-start.js b/packages/SwingSet/test/activityhash-vs-start.test.js similarity index 100% rename from packages/SwingSet/test/test-activityhash-vs-start.js rename to packages/SwingSet/test/activityhash-vs-start.test.js diff --git a/packages/SwingSet/test/test-bundle-handler.js b/packages/SwingSet/test/bundle-handler.test.js similarity index 100% rename from packages/SwingSet/test/test-bundle-handler.js rename to packages/SwingSet/test/bundle-handler.test.js diff --git a/packages/SwingSet/test/bundling/test-bundles-controller.js b/packages/SwingSet/test/bundling/bundles-controller.test.js similarity index 100% rename from packages/SwingSet/test/bundling/test-bundles-controller.js rename to packages/SwingSet/test/bundling/bundles-controller.test.js diff --git a/packages/SwingSet/test/bundling/test-bundles-kernel.js b/packages/SwingSet/test/bundling/bundles-kernel.test.js similarity index 100% rename from packages/SwingSet/test/bundling/test-bundles-kernel.js rename to packages/SwingSet/test/bundling/bundles-kernel.test.js diff --git a/packages/SwingSet/test/bundling/test-bundles.js b/packages/SwingSet/test/bundling/bundles.test.js similarity index 100% rename from packages/SwingSet/test/bundling/test-bundles.js rename to packages/SwingSet/test/bundling/bundles.test.js diff --git a/packages/SwingSet/test/change-parameters/test-change-parameters.js b/packages/SwingSet/test/change-parameters/change-parameters.test.js similarity index 100% rename from packages/SwingSet/test/change-parameters/test-change-parameters.js rename to packages/SwingSet/test/change-parameters/change-parameters.test.js diff --git a/packages/SwingSet/test/test-clist.js b/packages/SwingSet/test/clist.test.js similarity index 100% rename from packages/SwingSet/test/test-clist.js rename to packages/SwingSet/test/clist.test.js diff --git a/packages/SwingSet/test/test-comms.js b/packages/SwingSet/test/comms.test.js similarity index 100% rename from packages/SwingSet/test/test-comms.js rename to packages/SwingSet/test/comms.test.js diff --git a/packages/SwingSet/test/test-controller.js b/packages/SwingSet/test/controller.test.js similarity index 100% rename from packages/SwingSet/test/test-controller.js rename to packages/SwingSet/test/controller.test.js diff --git a/packages/SwingSet/test/definition/test-vat-definition.js b/packages/SwingSet/test/definition/vat-definition.test.js similarity index 100% rename from packages/SwingSet/test/definition/test-vat-definition.js rename to packages/SwingSet/test/definition/vat-definition.test.js diff --git a/packages/SwingSet/test/test-demos-comms.js b/packages/SwingSet/test/demos-comms.test.js similarity index 100% rename from packages/SwingSet/test/test-demos-comms.js rename to packages/SwingSet/test/demos-comms.test.js diff --git a/packages/SwingSet/test/test-demos.js b/packages/SwingSet/test/demos.test.js similarity index 100% rename from packages/SwingSet/test/test-demos.js rename to packages/SwingSet/test/demos.test.js diff --git a/packages/SwingSet/test/test-device-bridge.js b/packages/SwingSet/test/device-bridge.test.js similarity index 100% rename from packages/SwingSet/test/test-device-bridge.js rename to packages/SwingSet/test/device-bridge.test.js diff --git a/packages/SwingSet/test/device-hooks/test-device-hooks.js b/packages/SwingSet/test/device-hooks/device-hooks.test.js similarity index 100% rename from packages/SwingSet/test/device-hooks/test-device-hooks.js rename to packages/SwingSet/test/device-hooks/device-hooks.test.js diff --git a/packages/SwingSet/test/device-mailbox/test-device-mailbox.js b/packages/SwingSet/test/device-mailbox/device-mailbox.test.js similarity index 100% rename from packages/SwingSet/test/device-mailbox/test-device-mailbox.js rename to packages/SwingSet/test/device-mailbox/device-mailbox.test.js diff --git a/packages/SwingSet/test/device-plugin/test-device.js b/packages/SwingSet/test/device-plugin/device.test.js similarity index 100% rename from packages/SwingSet/test/device-plugin/test-device.js rename to packages/SwingSet/test/device-plugin/device.test.js diff --git a/packages/SwingSet/test/devices/test-devices.js b/packages/SwingSet/test/devices/devices.test.js similarity index 100% rename from packages/SwingSet/test/devices/test-devices.js rename to packages/SwingSet/test/devices/devices.test.js diff --git a/packages/SwingSet/test/devices/test-raw-device.js b/packages/SwingSet/test/devices/raw-device.test.js similarity index 100% rename from packages/SwingSet/test/devices/test-raw-device.js rename to packages/SwingSet/test/devices/raw-device.test.js diff --git a/packages/SwingSet/test/test-exomessages.js b/packages/SwingSet/test/exomessages.test.js similarity index 100% rename from packages/SwingSet/test/test-exomessages.js rename to packages/SwingSet/test/exomessages.test.js diff --git a/packages/SwingSet/test/test-gc-actions.js b/packages/SwingSet/test/gc-actions.test.js similarity index 100% rename from packages/SwingSet/test/test-gc-actions.js rename to packages/SwingSet/test/gc-actions.test.js diff --git a/packages/SwingSet/test/test-gc-and-finalize.js b/packages/SwingSet/test/gc-and-finalize.test.js similarity index 100% rename from packages/SwingSet/test/test-gc-and-finalize.js rename to packages/SwingSet/test/gc-and-finalize.test.js diff --git a/packages/SwingSet/test/test-gc-kernel.js b/packages/SwingSet/test/gc-kernel.test.js similarity index 100% rename from packages/SwingSet/test/test-gc-kernel.js rename to packages/SwingSet/test/gc-kernel.test.js diff --git a/packages/SwingSet/test/gc/test-gc-vat.js b/packages/SwingSet/test/gc/gc-vat.test.js similarity index 100% rename from packages/SwingSet/test/gc/test-gc-vat.js rename to packages/SwingSet/test/gc/gc-vat.test.js diff --git a/packages/SwingSet/test/test-kdebug.js b/packages/SwingSet/test/kdebug.test.js similarity index 100% rename from packages/SwingSet/test/test-kdebug.js rename to packages/SwingSet/test/kdebug.test.js diff --git a/packages/SwingSet/test/test-kernel.js b/packages/SwingSet/test/kernel.test.js similarity index 100% rename from packages/SwingSet/test/test-kernel.js rename to packages/SwingSet/test/kernel.test.js diff --git a/packages/SwingSet/test/test-manual-timer.js b/packages/SwingSet/test/manual-timer.test.js similarity index 100% rename from packages/SwingSet/test/test-manual-timer.js rename to packages/SwingSet/test/manual-timer.test.js diff --git a/packages/SwingSet/test/test-marshal.js b/packages/SwingSet/test/marshal.test.js similarity index 100% rename from packages/SwingSet/test/test-marshal.js rename to packages/SwingSet/test/marshal.test.js diff --git a/packages/SwingSet/test/test-message-patterns-comms.js b/packages/SwingSet/test/message-patterns-comms.test.js similarity index 98% rename from packages/SwingSet/test/test-message-patterns-comms.js rename to packages/SwingSet/test/message-patterns-comms.test.js index a4fe9b3b7f3..6b1d071c97c 100644 --- a/packages/SwingSet/test/test-message-patterns-comms.js +++ b/packages/SwingSet/test/message-patterns-comms.test.js @@ -21,7 +21,7 @@ import { buildPatterns } from './message-patterns.js'; // This exercises all the patterns in 'message-patterns.js' twice with // comms vats in the path (a different file runs them all with a // direct connection). To enable/disable specific tests, run with e.g. -// 'yarn test test/test-message-patterns.js -m "test pattern a72 +// 'yarn test test/message-patterns.test.js -m "test pattern a72 // comms"' or '-m "*a72 comms"' // See message-patterns.js for details. diff --git a/packages/SwingSet/test/test-message-patterns-local.js b/packages/SwingSet/test/message-patterns-local.test.js similarity index 98% rename from packages/SwingSet/test/test-message-patterns-local.js rename to packages/SwingSet/test/message-patterns-local.test.js index 6c51b0bbc90..dd6474e9003 100644 --- a/packages/SwingSet/test/test-message-patterns-local.js +++ b/packages/SwingSet/test/message-patterns-local.test.js @@ -21,7 +21,7 @@ import { buildPatterns } from './message-patterns.js'; // vatA/vatB connected directly through the kernel (a different file // runs them all a second time with comms vats in the path). To // enable/disable specific tests, run with e.g. 'yarn test -// test/test-message-patterns.js -m "test pattern a72 local"' or '-m +// test/message-patterns.test.js -m "test pattern a72 local"' or '-m // "*a72 local"' // See message-patterns.js for details. diff --git a/packages/SwingSet/test/test-metering-control.js b/packages/SwingSet/test/metering-control.test.js similarity index 100% rename from packages/SwingSet/test/test-metering-control.js rename to packages/SwingSet/test/metering-control.test.js diff --git a/packages/SwingSet/test/metering/test-dynamic-vat-metered.js b/packages/SwingSet/test/metering/dynamic-vat-metered.test.js similarity index 100% rename from packages/SwingSet/test/metering/test-dynamic-vat-metered.js rename to packages/SwingSet/test/metering/dynamic-vat-metered.test.js diff --git a/packages/SwingSet/test/metering/test-dynamic-vat-unmetered.js b/packages/SwingSet/test/metering/dynamic-vat-unmetered.test.js similarity index 100% rename from packages/SwingSet/test/metering/test-dynamic-vat-unmetered.js rename to packages/SwingSet/test/metering/dynamic-vat-unmetered.test.js diff --git a/packages/SwingSet/test/promise-watcher/test-promise-watcher.js b/packages/SwingSet/test/promise-watcher/promise-watcher.test.js similarity index 100% rename from packages/SwingSet/test/promise-watcher/test-promise-watcher.js rename to packages/SwingSet/test/promise-watcher/promise-watcher.test.js diff --git a/packages/SwingSet/test/test-promises.js b/packages/SwingSet/test/promises.test.js similarity index 99% rename from packages/SwingSet/test/test-promises.js rename to packages/SwingSet/test/promises.test.js index 6d6a73712e7..eb994ce9e32 100644 --- a/packages/SwingSet/test/test-promises.js +++ b/packages/SwingSet/test/promises.test.js @@ -217,7 +217,7 @@ test('refcount while queued', async t => { }); test('local promises are rejected by vat upgrade', async t => { - // TODO: Generalize packages/SwingSet/test/upgrade/test-upgrade.js + // TODO: Generalize packages/SwingSet/test/upgrade/upgrade.test.js /** @type {SwingSetConfig} */ const config = { includeDevDependencies: true, // for vat-data diff --git a/packages/SwingSet/test/test-queue-priority.js b/packages/SwingSet/test/queue-priority.test.js similarity index 100% rename from packages/SwingSet/test/test-queue-priority.js rename to packages/SwingSet/test/queue-priority.test.js diff --git a/packages/SwingSet/test/reap-all/test-reap-all.js b/packages/SwingSet/test/reap-all/reap-all.test.js similarity index 100% rename from packages/SwingSet/test/reap-all/test-reap-all.js rename to packages/SwingSet/test/reap-all/reap-all.test.js diff --git a/packages/SwingSet/test/run-policy/test-run-policy.js b/packages/SwingSet/test/run-policy/run-policy.test.js similarity index 100% rename from packages/SwingSet/test/run-policy/test-run-policy.js rename to packages/SwingSet/test/run-policy/run-policy.test.js diff --git a/packages/SwingSet/test/snapshots/test-state.js.md b/packages/SwingSet/test/snapshots/state.test.js.md similarity index 73% rename from packages/SwingSet/test/snapshots/test-state.js.md rename to packages/SwingSet/test/snapshots/state.test.js.md index a3be9f040d6..3ab81fd5cd5 100644 --- a/packages/SwingSet/test/snapshots/test-state.js.md +++ b/packages/SwingSet/test/snapshots/state.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/test-state.js` +# Snapshot report for `test/state.test.js` -The actual snapshot is saved in `test-state.js.snap`. +The actual snapshot is saved in `state.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/SwingSet/test/snapshots/test-state.js.snap b/packages/SwingSet/test/snapshots/state.test.js.snap similarity index 100% rename from packages/SwingSet/test/snapshots/test-state.js.snap rename to packages/SwingSet/test/snapshots/state.test.js.snap diff --git a/packages/SwingSet/test/snapshots/test-xsnap-store.js.md b/packages/SwingSet/test/snapshots/xsnap-store.test.js.md similarity index 87% rename from packages/SwingSet/test/snapshots/test-xsnap-store.js.md rename to packages/SwingSet/test/snapshots/xsnap-store.test.js.md index 6d3196457da..db827766e84 100644 --- a/packages/SwingSet/test/snapshots/test-xsnap-store.js.md +++ b/packages/SwingSet/test/snapshots/xsnap-store.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/test-xsnap-store.js` +# Snapshot report for `test/xsnap-store.test.js` -The actual snapshot is saved in `test-xsnap-store.js.snap`. +The actual snapshot is saved in `xsnap-store.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/SwingSet/test/snapshots/test-xsnap-store.js.snap b/packages/SwingSet/test/snapshots/xsnap-store.test.js.snap similarity index 100% rename from packages/SwingSet/test/snapshots/test-xsnap-store.js.snap rename to packages/SwingSet/test/snapshots/xsnap-store.test.js.snap diff --git a/packages/SwingSet/test/test-state.js b/packages/SwingSet/test/state.test.js similarity index 99% rename from packages/SwingSet/test/test-state.js rename to packages/SwingSet/test/state.test.js index 690e0647a8f..bdabd07f02a 100644 --- a/packages/SwingSet/test/test-state.js +++ b/packages/SwingSet/test/state.test.js @@ -689,7 +689,7 @@ test('crankhash - initial state and additions', t => { t.log(`\ This test fails under maintenance of initial kernel state. If these changes are expected, run: - yarn test --update-snapshots test/test-state.js + yarn test --update-snapshots test/state.test.js Then commit the changes in .../snapshots/ path. `); }); diff --git a/packages/SwingSet/test/test-syscall-failure.js b/packages/SwingSet/test/syscall-failure.test.js similarity index 100% rename from packages/SwingSet/test/test-syscall-failure.js rename to packages/SwingSet/test/syscall-failure.test.js diff --git a/packages/SwingSet/test/test-timer-device.js b/packages/SwingSet/test/timer-device.test.js similarity index 100% rename from packages/SwingSet/test/test-timer-device.js rename to packages/SwingSet/test/timer-device.test.js diff --git a/packages/SwingSet/test/timer-device/test-device.js b/packages/SwingSet/test/timer-device/device.test.js similarity index 100% rename from packages/SwingSet/test/timer-device/test-device.js rename to packages/SwingSet/test/timer-device/device.test.js diff --git a/packages/SwingSet/test/timer/test-timer.js b/packages/SwingSet/test/timer/timer.test.js similarity index 100% rename from packages/SwingSet/test/timer/test-timer.js rename to packages/SwingSet/test/timer/timer.test.js diff --git a/packages/SwingSet/test/test-transcript-light.js b/packages/SwingSet/test/transcript-light.test.js similarity index 100% rename from packages/SwingSet/test/test-transcript-light.js rename to packages/SwingSet/test/transcript-light.test.js diff --git a/packages/SwingSet/test/test-transcript.js b/packages/SwingSet/test/transcript.test.js similarity index 100% rename from packages/SwingSet/test/test-transcript.js rename to packages/SwingSet/test/transcript.test.js diff --git a/packages/SwingSet/test/transcript/test-state-sync-reload.js b/packages/SwingSet/test/transcript/state-sync-reload.test.js similarity index 100% rename from packages/SwingSet/test/transcript/test-state-sync-reload.js rename to packages/SwingSet/test/transcript/state-sync-reload.test.js diff --git a/packages/SwingSet/test/transcript/test-transcript-entries.js b/packages/SwingSet/test/transcript/transcript-entries.test.js similarity index 100% rename from packages/SwingSet/test/transcript/test-transcript-entries.js rename to packages/SwingSet/test/transcript/transcript-entries.test.js diff --git a/packages/SwingSet/test/test-transcriptlessness.js b/packages/SwingSet/test/transcriptlessness.test.js similarity index 100% rename from packages/SwingSet/test/test-transcriptlessness.js rename to packages/SwingSet/test/transcriptlessness.test.js diff --git a/packages/SwingSet/test/upgrade/test-upgrade-replay.js b/packages/SwingSet/test/upgrade/upgrade-replay.test.js similarity index 100% rename from packages/SwingSet/test/upgrade/test-upgrade-replay.js rename to packages/SwingSet/test/upgrade/upgrade-replay.test.js diff --git a/packages/SwingSet/test/upgrade/test-upgrade.js b/packages/SwingSet/test/upgrade/upgrade.test.js similarity index 100% rename from packages/SwingSet/test/upgrade/test-upgrade.js rename to packages/SwingSet/test/upgrade/upgrade.test.js diff --git a/packages/SwingSet/test/vat-admin/test-create-vat.js b/packages/SwingSet/test/vat-admin/create-vat.test.js similarity index 100% rename from packages/SwingSet/test/vat-admin/test-create-vat.js rename to packages/SwingSet/test/vat-admin/create-vat.test.js diff --git a/packages/SwingSet/test/vat-admin/test-replay.js b/packages/SwingSet/test/vat-admin/replay.test.js similarity index 100% rename from packages/SwingSet/test/vat-admin/test-replay.js rename to packages/SwingSet/test/vat-admin/replay.test.js diff --git a/packages/SwingSet/test/vat-admin/terminate/test-terminate-replay.js b/packages/SwingSet/test/vat-admin/terminate/terminate-replay.test.js similarity index 100% rename from packages/SwingSet/test/vat-admin/terminate/test-terminate-replay.js rename to packages/SwingSet/test/vat-admin/terminate/terminate-replay.test.js diff --git a/packages/SwingSet/test/vat-admin/terminate/test-terminate.js b/packages/SwingSet/test/vat-admin/terminate/terminate.test.js similarity index 100% rename from packages/SwingSet/test/vat-admin/terminate/test-terminate.js rename to packages/SwingSet/test/vat-admin/terminate/terminate.test.js diff --git a/packages/SwingSet/test/test-vat-env.js b/packages/SwingSet/test/vat-env.test.js similarity index 100% rename from packages/SwingSet/test/test-vat-env.js rename to packages/SwingSet/test/vat-env.test.js diff --git a/packages/SwingSet/test/vat-timer-upgrade/test-vat-timer-upgrade.js b/packages/SwingSet/test/vat-timer-upgrade/vat-timer-upgrade.test.js similarity index 100% rename from packages/SwingSet/test/vat-timer-upgrade/test-vat-timer-upgrade.js rename to packages/SwingSet/test/vat-timer-upgrade/vat-timer-upgrade.test.js diff --git a/packages/SwingSet/test/test-vat-timer.js b/packages/SwingSet/test/vat-timer.test.js similarity index 100% rename from packages/SwingSet/test/test-vat-timer.js rename to packages/SwingSet/test/vat-timer.test.js diff --git a/packages/SwingSet/test/vat-warehouse/test-preload.js b/packages/SwingSet/test/vat-warehouse/preload.test.js similarity index 100% rename from packages/SwingSet/test/vat-warehouse/test-preload.js rename to packages/SwingSet/test/vat-warehouse/preload.test.js diff --git a/packages/SwingSet/test/vat-warehouse/test-reload-snapshot.js b/packages/SwingSet/test/vat-warehouse/reload-snapshot.test.js similarity index 100% rename from packages/SwingSet/test/vat-warehouse/test-reload-snapshot.js rename to packages/SwingSet/test/vat-warehouse/reload-snapshot.test.js diff --git a/packages/SwingSet/test/vat-warehouse/test-warehouse.js b/packages/SwingSet/test/vat-warehouse/warehouse.test.js similarity index 100% rename from packages/SwingSet/test/vat-warehouse/test-warehouse.js rename to packages/SwingSet/test/vat-warehouse/warehouse.test.js diff --git a/packages/SwingSet/test/test-vattp.js b/packages/SwingSet/test/vattp.test.js similarity index 100% rename from packages/SwingSet/test/test-vattp.js rename to packages/SwingSet/test/vattp.test.js diff --git a/packages/SwingSet/test/virtualObjects/collection-slots/test-collection-slots.js b/packages/SwingSet/test/virtualObjects/collection-slots/collection-slots.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/collection-slots/test-collection-slots.js rename to packages/SwingSet/test/virtualObjects/collection-slots/collection-slots.test.js diff --git a/packages/SwingSet/test/virtualObjects/delete-stored-vo/test-delete-stored-vo.js b/packages/SwingSet/test/virtualObjects/delete-stored-vo/delete-stored-vo.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/delete-stored-vo/test-delete-stored-vo.js rename to packages/SwingSet/test/virtualObjects/delete-stored-vo/delete-stored-vo.test.js diff --git a/packages/SwingSet/test/virtualObjects/double-retire-import/test-double-retire-import.js b/packages/SwingSet/test/virtualObjects/double-retire-import/double-retire-import.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/double-retire-import/test-double-retire-import.js rename to packages/SwingSet/test/virtualObjects/double-retire-import/double-retire-import.test.js diff --git a/packages/SwingSet/test/virtualObjects/test-facet-retention.js b/packages/SwingSet/test/virtualObjects/facet-retention.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/test-facet-retention.js rename to packages/SwingSet/test/virtualObjects/facet-retention.test.js diff --git a/packages/SwingSet/test/virtualObjects/test-representatives.js b/packages/SwingSet/test/virtualObjects/representatives.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/test-representatives.js rename to packages/SwingSet/test/virtualObjects/representatives.test.js diff --git a/packages/SwingSet/test/virtualObjects/vdata-promises/test-vdata-promises.js b/packages/SwingSet/test/virtualObjects/vdata-promises/vdata-promises.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/vdata-promises/test-vdata-promises.js rename to packages/SwingSet/test/virtualObjects/vdata-promises/vdata-promises.test.js diff --git a/packages/SwingSet/test/virtualObjects/test-weakcollections.js b/packages/SwingSet/test/virtualObjects/weakcollections.test.js similarity index 100% rename from packages/SwingSet/test/virtualObjects/test-weakcollections.js rename to packages/SwingSet/test/virtualObjects/weakcollections.test.js diff --git a/packages/SwingSet/test/vo-test-harness/test-dvo-test-harness.js b/packages/SwingSet/test/vo-test-harness/dvo-test-harness.test.js similarity index 100% rename from packages/SwingSet/test/vo-test-harness/test-dvo-test-harness.js rename to packages/SwingSet/test/vo-test-harness/dvo-test-harness.test.js diff --git a/packages/SwingSet/test/test-vpid-kernel.js b/packages/SwingSet/test/vpid-kernel.test.js similarity index 100% rename from packages/SwingSet/test/test-vpid-kernel.js rename to packages/SwingSet/test/vpid-kernel.test.js diff --git a/packages/SwingSet/test/test-worker-protocol.js b/packages/SwingSet/test/worker-protocol.test.js similarity index 100% rename from packages/SwingSet/test/test-worker-protocol.js rename to packages/SwingSet/test/worker-protocol.test.js diff --git a/packages/SwingSet/test/workers/test-worker.js b/packages/SwingSet/test/workers/worker.test.js similarity index 100% rename from packages/SwingSet/test/workers/test-worker.js rename to packages/SwingSet/test/workers/worker.test.js diff --git a/packages/SwingSet/test/test-xsnap-errors.js b/packages/SwingSet/test/xsnap-errors.test.js similarity index 100% rename from packages/SwingSet/test/test-xsnap-errors.js rename to packages/SwingSet/test/xsnap-errors.test.js diff --git a/packages/SwingSet/test/test-xsnap-metering.js b/packages/SwingSet/test/xsnap-metering.test.js similarity index 100% rename from packages/SwingSet/test/test-xsnap-metering.js rename to packages/SwingSet/test/xsnap-metering.test.js diff --git a/packages/SwingSet/test/xsnap-stable-bundles/test-stable-bundles.js b/packages/SwingSet/test/xsnap-stable-bundles/stable-bundles.test.js similarity index 100% rename from packages/SwingSet/test/xsnap-stable-bundles/test-stable-bundles.js rename to packages/SwingSet/test/xsnap-stable-bundles/stable-bundles.test.js diff --git a/packages/SwingSet/test/test-xsnap-store.js b/packages/SwingSet/test/xsnap-store.test.js similarity index 99% rename from packages/SwingSet/test/test-xsnap-store.js rename to packages/SwingSet/test/xsnap-store.test.js index 053cd178826..0ef655b91e0 100644 --- a/packages/SwingSet/test/test-xsnap-store.js +++ b/packages/SwingSet/test/xsnap-store.test.js @@ -178,7 +178,7 @@ test('XS + SES snapshots are long-term deterministic', async t => { t.log(`\ This test fails under maintenance of xsnap dependencies. If these changes are expected, run: - yarn test --update-snapshots test/test-xsnap-store.js + yarn test --update-snapshots test/xsnap-store.test.js Then commit the changes in .../snapshots/ path. `); }); diff --git a/packages/SwingSet/test/zcf-ish-upgrade/test-zcf-ish-upgrade.js b/packages/SwingSet/test/zcf-ish-upgrade/zcf-ish-upgrade.test.js similarity index 100% rename from packages/SwingSet/test/zcf-ish-upgrade/test-zcf-ish-upgrade.js rename to packages/SwingSet/test/zcf-ish-upgrade/zcf-ish-upgrade.test.js diff --git a/packages/SwingSet/tools/dvo-test-harness.js b/packages/SwingSet/tools/dvo-test-harness.js index ff80186ea6a..b8d54b0a953 100644 --- a/packages/SwingSet/tools/dvo-test-harness.js +++ b/packages/SwingSet/tools/dvo-test-harness.js @@ -103,7 +103,7 @@ const extractLog = capdata => stupidM.unserialize(capdata); // 8 - Collect log messages from the test vat until it sends the `testComplete()` message // 9 - Call `logCheck` with the sequence of log messages sent during the 'after' phase // -// The SwingSet test `vo-test-harness/test-dvo-test-harness.js` and the +// The SwingSet test `vo-test-harness/dvo-test-harness.test.js` and the // accompanying vat definition `vo-test-harness/vat-dvo-test-test.js` form a // test of the durable VO test harness itself, but can be used as a simple // example of how to set things up. diff --git a/packages/access-token/package.json b/packages/access-token/package.json index 86b3d2f0bde..b68183ca88b 100644 --- a/packages/access-token/package.json +++ b/packages/access-token/package.json @@ -33,7 +33,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/access-token/test/test-state.js b/packages/access-token/test/state.test.js similarity index 100% rename from packages/access-token/test/test-state.js rename to packages/access-token/test/state.test.js diff --git a/packages/access-token/test/test-token.js b/packages/access-token/test/token.test.js similarity index 100% rename from packages/access-token/test/test-token.js rename to packages/access-token/test/token.test.js diff --git a/packages/agoric-cli/.ava-integration-test.config.js b/packages/agoric-cli/.ava-integration-test.config.js index e93a291ba18..ea6d3151368 100644 --- a/packages/agoric-cli/.ava-integration-test.config.js +++ b/packages/agoric-cli/.ava-integration-test.config.js @@ -1,7 +1,7 @@ // @jessie-check export default { - files: ['integration-tests/test-workflow.js'], + files: ['integration-tests/*.test.*'], timeout: '10m', workerThreads: false, }; diff --git a/packages/agoric-cli/integration-tests/test-workflow.js b/packages/agoric-cli/integration-tests/workflow.test.js similarity index 100% rename from packages/agoric-cli/integration-tests/test-workflow.js rename to packages/agoric-cli/integration-tests/workflow.test.js diff --git a/packages/agoric-cli/package.json b/packages/agoric-cli/package.json index 10fd336c2f7..b245ca7e0ce 100644 --- a/packages/agoric-cli/package.json +++ b/packages/agoric-cli/package.json @@ -92,7 +92,8 @@ "homepage": "https://github.com/Agoric/agoric-sdk#readme", "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "timeout": "2m", "workerThreads": false diff --git a/packages/agoric-cli/test/test-inter-cli.js b/packages/agoric-cli/test/inter-cli.test.js similarity index 100% rename from packages/agoric-cli/test/test-inter-cli.js rename to packages/agoric-cli/test/inter-cli.test.js diff --git a/packages/agoric-cli/test/test-main.js b/packages/agoric-cli/test/main.test.js similarity index 100% rename from packages/agoric-cli/test/test-main.js rename to packages/agoric-cli/test/main.test.js diff --git a/packages/agoric-cli/test/test-publish-bundle.js b/packages/agoric-cli/test/publish-bundle.test.js similarity index 100% rename from packages/agoric-cli/test/test-publish-bundle.js rename to packages/agoric-cli/test/publish-bundle.test.js diff --git a/packages/agoric-cli/test/snapshots/test-inter-cli.js.md b/packages/agoric-cli/test/snapshots/inter-cli.test.js.md similarity index 97% rename from packages/agoric-cli/test/snapshots/test-inter-cli.js.md rename to packages/agoric-cli/test/snapshots/inter-cli.test.js.md index ced01452dbd..7820afd74e2 100644 --- a/packages/agoric-cli/test/snapshots/test-inter-cli.js.md +++ b/packages/agoric-cli/test/snapshots/inter-cli.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/test-inter-cli.js` +# Snapshot report for `test/inter-cli.test.js` -The actual snapshot is saved in `test-inter-cli.js.snap`. +The actual snapshot is saved in `inter-cli.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/agoric-cli/test/snapshots/test-inter-cli.js.snap b/packages/agoric-cli/test/snapshots/inter-cli.test.js.snap similarity index 100% rename from packages/agoric-cli/test/snapshots/test-inter-cli.js.snap rename to packages/agoric-cli/test/snapshots/inter-cli.test.js.snap diff --git a/packages/assert/package.json b/packages/assert/package.json index 5588bfacc10..4c88f1f6917 100755 --- a/packages/assert/package.json +++ b/packages/assert/package.json @@ -24,6 +24,10 @@ "ava": { "require": [ "@endo/init/debug.js" + ], + "files": [ + "test/**/test-*.*", + "test/**/*.test.*" ] }, "repository": { diff --git a/packages/assert/test/test-assert.js b/packages/assert/test/assert.test.js similarity index 100% rename from packages/assert/test/test-assert.js rename to packages/assert/test/assert.test.js diff --git a/packages/base-zone/package.json b/packages/base-zone/package.json index 50e68a3b3b9..c3d6be73309 100644 --- a/packages/base-zone/package.json +++ b/packages/base-zone/package.json @@ -47,7 +47,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/base-zone/test/test-exos.js b/packages/base-zone/test/exos.test.js similarity index 100% rename from packages/base-zone/test/test-exos.js rename to packages/base-zone/test/exos.test.js diff --git a/packages/base-zone/test/test-make-once.js b/packages/base-zone/test/make-once.test.js similarity index 100% rename from packages/base-zone/test/test-make-once.js rename to packages/base-zone/test/make-once.test.js diff --git a/packages/base-zone/test/test-prepare-revocable.js b/packages/base-zone/test/prepare-revocable.test.js similarity index 100% rename from packages/base-zone/test/test-prepare-revocable.js rename to packages/base-zone/test/prepare-revocable.test.js diff --git a/packages/benchmark/package.json b/packages/benchmark/package.json index f1e3a9ef718..c70ce22b477 100644 --- a/packages/benchmark/package.json +++ b/packages/benchmark/package.json @@ -50,8 +50,8 @@ "ts": "module" }, "files": [ - "test/**/test-*.js", - "test/**/test-*.ts" + "test/**/test-*.*", + "test/**/*.test.*" ], "nodeArguments": [ "--loader=tsx", diff --git a/packages/boot/package.json b/packages/boot/package.json index aedb926b1f5..a26df469ead 100644 --- a/packages/boot/package.json +++ b/packages/boot/package.json @@ -8,7 +8,7 @@ "scripts": { "build": "exit 0", "test": "ava", - "test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava 'test/bootstrapTests/**/test-*.js' 'test/upgrading/**/test-*.js'", + "test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava test/bootstrapTests test/upgrading", "lint-fix": "yarn lint:eslint --fix", "lint": "run-s --continue-on-error lint:*", "lint:types": "tsc", @@ -77,8 +77,8 @@ "ts": "module" }, "files": [ - "test/**/test-*.js", - "test/**/test-*.ts" + "test/**/test-*.*", + "test/**/*.test.*" ], "nodeArguments": [ "--loader=tsx", diff --git a/packages/boot/test/test-boot-config.js b/packages/boot/test/boot-config.test.js similarity index 100% rename from packages/boot/test/test-boot-config.js rename to packages/boot/test/boot-config.test.js diff --git a/packages/boot/test/bootstrapTests/test-addAssets.ts b/packages/boot/test/bootstrapTests/addAssets.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-addAssets.ts rename to packages/boot/test/bootstrapTests/addAssets.test.ts diff --git a/packages/boot/test/bootstrapTests/test-demo-config.ts b/packages/boot/test/bootstrapTests/demo-config.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-demo-config.ts rename to packages/boot/test/bootstrapTests/demo-config.test.ts diff --git a/packages/boot/test/bootstrapTests/ibcBridgeMock.js b/packages/boot/test/bootstrapTests/ibcBridgeMock.js index cfe66786981..0f20af5162a 100644 --- a/packages/boot/test/bootstrapTests/ibcBridgeMock.js +++ b/packages/boot/test/bootstrapTests/ibcBridgeMock.js @@ -8,7 +8,7 @@ import { M } from '@endo/patterns'; import { makeScalarBigMapStore } from '@agoric/vat-data'; import { makeDurableZone } from '@agoric/zone/durable.js'; -// TODO: factor out overlap with packages/vats/test/test-network.js +// TODO: factor out overlap with packages/vats/test/network.test.js export const makeBridge = ( t, baggage = makeScalarBigMapStore('baggage', { diff --git a/packages/boot/test/bootstrapTests/test-liquidation-1.ts b/packages/boot/test/bootstrapTests/liquidation-1.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-liquidation-1.ts rename to packages/boot/test/bootstrapTests/liquidation-1.test.ts diff --git a/packages/boot/test/bootstrapTests/test-liquidation-2b.ts b/packages/boot/test/bootstrapTests/liquidation-2b.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-liquidation-2b.ts rename to packages/boot/test/bootstrapTests/liquidation-2b.test.ts diff --git a/packages/boot/test/bootstrapTests/test-liquidation-concurrent-1.ts b/packages/boot/test/bootstrapTests/liquidation-concurrent-1.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-liquidation-concurrent-1.ts rename to packages/boot/test/bootstrapTests/liquidation-concurrent-1.test.ts diff --git a/packages/boot/test/bootstrapTests/test-liquidation-concurrent-2b.ts b/packages/boot/test/bootstrapTests/liquidation-concurrent-2b.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-liquidation-concurrent-2b.ts rename to packages/boot/test/bootstrapTests/liquidation-concurrent-2b.test.ts diff --git a/packages/boot/test/bootstrapTests/test-net-ibc-upgrade.ts b/packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-net-ibc-upgrade.ts rename to packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts diff --git a/packages/boot/test/bootstrapTests/test-orchestration.ts b/packages/boot/test/bootstrapTests/orchestration.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-orchestration.ts rename to packages/boot/test/bootstrapTests/orchestration.test.ts diff --git a/packages/boot/test/bootstrapTests/test-vat-orchestration.ts b/packages/boot/test/bootstrapTests/vat-orchestration.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-vat-orchestration.ts rename to packages/boot/test/bootstrapTests/vat-orchestration.test.ts diff --git a/packages/boot/test/bootstrapTests/test-vats-restart.ts b/packages/boot/test/bootstrapTests/vats-restart.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-vats-restart.ts rename to packages/boot/test/bootstrapTests/vats-restart.test.ts diff --git a/packages/boot/test/bootstrapTests/test-vaults-integration.ts b/packages/boot/test/bootstrapTests/vaults-integration.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-vaults-integration.ts rename to packages/boot/test/bootstrapTests/vaults-integration.test.ts diff --git a/packages/boot/test/bootstrapTests/test-vaults-upgrade.ts b/packages/boot/test/bootstrapTests/vaults-upgrade.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-vaults-upgrade.ts rename to packages/boot/test/bootstrapTests/vaults-upgrade.test.ts diff --git a/packages/boot/test/bootstrapTests/test-walletSurvivesZoeRestart.ts b/packages/boot/test/bootstrapTests/walletSurvivesZoeRestart.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-walletSurvivesZoeRestart.ts rename to packages/boot/test/bootstrapTests/walletSurvivesZoeRestart.test.ts diff --git a/packages/boot/test/bootstrapTests/test-zcf-upgrade.ts b/packages/boot/test/bootstrapTests/zcf-upgrade.test.ts similarity index 100% rename from packages/boot/test/bootstrapTests/test-zcf-upgrade.ts rename to packages/boot/test/bootstrapTests/zcf-upgrade.test.ts diff --git a/packages/boot/test/snapshots/test-boot-config.js.md b/packages/boot/test/snapshots/boot-config.test.js.md similarity index 99% rename from packages/boot/test/snapshots/test-boot-config.js.md rename to packages/boot/test/snapshots/boot-config.test.js.md index 3578ff1b583..e3f52c89068 100644 --- a/packages/boot/test/snapshots/test-boot-config.js.md +++ b/packages/boot/test/snapshots/boot-config.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/test-boot-config.js` +# Snapshot report for `test/boot-config.test.js` -The actual snapshot is saved in `test-boot-config.js.snap`. +The actual snapshot is saved in `boot-config.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/boot/test/snapshots/test-boot-config.js.snap b/packages/boot/test/snapshots/boot-config.test.js.snap similarity index 100% rename from packages/boot/test/snapshots/test-boot-config.js.snap rename to packages/boot/test/snapshots/boot-config.test.js.snap diff --git a/packages/boot/test/tools/ibc/test-mocks.js b/packages/boot/test/tools/ibc/mocks.test.js similarity index 100% rename from packages/boot/test/tools/ibc/test-mocks.js rename to packages/boot/test/tools/ibc/mocks.test.js diff --git a/packages/boot/test/upgrading/test-upgrade-contracts.js b/packages/boot/test/upgrading/upgrade-contracts.test.js similarity index 100% rename from packages/boot/test/upgrading/test-upgrade-contracts.js rename to packages/boot/test/upgrading/upgrade-contracts.test.js diff --git a/packages/boot/test/upgrading/test-upgrade-vats.js b/packages/boot/test/upgrading/upgrade-vats.test.js similarity index 100% rename from packages/boot/test/upgrading/test-upgrade-vats.js rename to packages/boot/test/upgrading/upgrade-vats.test.js diff --git a/packages/builders/package.json b/packages/builders/package.json index a2b7b38ba8c..b4d32881833 100644 --- a/packages/builders/package.json +++ b/packages/builders/package.json @@ -69,7 +69,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/builders/test/test-inter-proposals.js b/packages/builders/test/inter-proposals.test.js similarity index 100% rename from packages/builders/test/test-inter-proposals.js rename to packages/builders/test/inter-proposals.test.js diff --git a/packages/cache/package.json b/packages/cache/package.json index c08891391c5..f31cadf930e 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -39,7 +39,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/cache/test/test-mvp.js b/packages/cache/test/mvp.test.js similarity index 100% rename from packages/cache/test/test-mvp.js rename to packages/cache/test/mvp.test.js diff --git a/packages/cache/test/test-storage.js b/packages/cache/test/storage.test.js similarity index 100% rename from packages/cache/test/test-storage.js rename to packages/cache/test/storage.test.js diff --git a/packages/casting/package.json b/packages/casting/package.json index 533bcae6855..c8d7bda85ad 100644 --- a/packages/casting/package.json +++ b/packages/casting/package.json @@ -54,7 +54,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "timeout": "20m", "workerThreads": false diff --git a/packages/casting/test/test-interpose-net-access.js b/packages/casting/test/interpose-net-access.test.js similarity index 100% rename from packages/casting/test/test-interpose-net-access.js rename to packages/casting/test/interpose-net-access.test.js diff --git a/packages/casting/test/test-mvp.js b/packages/casting/test/mvp.test.js similarity index 100% rename from packages/casting/test/test-mvp.js rename to packages/casting/test/mvp.test.js diff --git a/packages/casting/test/net-access-fixture.js b/packages/casting/test/net-access-fixture.js index d89f438271b..3a12d6b88f5 100644 --- a/packages/casting/test/net-access-fixture.js +++ b/packages/casting/test/net-access-fixture.js @@ -2,9 +2,9 @@ const { stringify: jq } = JSON; /** * @file to regenerate - * 1. set RECORDING=true in test-interpose-net-access.js - * 2. run: yarn test test/test-test-interpose-net-access.js --update-snapshots - * 3. for each map in test-test-interpose-net-access.js.md, copy it and + * 1. set RECORDING=true in interpose-net-access.test.js + * 2. run: yarn test test/interpose-net-access.test.js --update-snapshots + * 3. for each map in interpose-net-access.test.js.md, copy it and * 4. replace all occurences of => with : and paste as args to Object.fromEntries() * 5. change RECORDING back to false */ diff --git a/packages/casting/test/test-netconfig.js b/packages/casting/test/netconfig.test.js similarity index 100% rename from packages/casting/test/test-netconfig.js rename to packages/casting/test/netconfig.test.js diff --git a/packages/cosmic-proto/package.json b/packages/cosmic-proto/package.json index c2a5e42fb14..66fcf7a1c81 100644 --- a/packages/cosmic-proto/package.json +++ b/packages/cosmic-proto/package.json @@ -152,7 +152,8 @@ "compile": false }, "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ] } } diff --git a/packages/cosmic-proto/test/test-exports.js b/packages/cosmic-proto/test/exports.test.js similarity index 100% rename from packages/cosmic-proto/test/test-exports.js rename to packages/cosmic-proto/test/exports.test.js diff --git a/packages/cosmic-proto/test/test-helpers.js b/packages/cosmic-proto/test/helpers.test.js similarity index 100% rename from packages/cosmic-proto/test/test-helpers.js rename to packages/cosmic-proto/test/helpers.test.js diff --git a/packages/cosmic-proto/test/test-readme.js b/packages/cosmic-proto/test/readme.test.js similarity index 100% rename from packages/cosmic-proto/test/test-readme.js rename to packages/cosmic-proto/test/readme.test.js diff --git a/packages/cosmic-proto/test/snapshots/test-exports.js.md b/packages/cosmic-proto/test/snapshots/exports.test.js.md similarity index 95% rename from packages/cosmic-proto/test/snapshots/test-exports.js.md rename to packages/cosmic-proto/test/snapshots/exports.test.js.md index 1c3710bfc2b..7978c574861 100644 --- a/packages/cosmic-proto/test/snapshots/test-exports.js.md +++ b/packages/cosmic-proto/test/snapshots/exports.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/test-exports.js` +# Snapshot report for `test/exports.test.js` -The actual snapshot is saved in `test-exports.js.snap`. +The actual snapshot is saved in `exports.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/cosmic-proto/test/snapshots/test-exports.js.snap b/packages/cosmic-proto/test/snapshots/exports.test.js.snap similarity index 100% rename from packages/cosmic-proto/test/snapshots/test-exports.js.snap rename to packages/cosmic-proto/test/snapshots/exports.test.js.snap diff --git a/packages/cosmic-proto/test/test-vatsafe.js b/packages/cosmic-proto/test/vatsafe.test.js similarity index 100% rename from packages/cosmic-proto/test/test-vatsafe.js rename to packages/cosmic-proto/test/vatsafe.test.js diff --git a/packages/cosmic-swingset/package.json b/packages/cosmic-swingset/package.json index 2e0c281f6fd..767c4236699 100644 --- a/packages/cosmic-swingset/package.json +++ b/packages/cosmic-swingset/package.json @@ -60,7 +60,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/cosmic-swingset/test/test-clean-core-eval.js b/packages/cosmic-swingset/test/clean-core-eval.test.js similarity index 100% rename from packages/cosmic-swingset/test/test-clean-core-eval.js rename to packages/cosmic-swingset/test/clean-core-eval.test.js diff --git a/packages/cosmic-swingset/test/test-export-storage.js b/packages/cosmic-swingset/test/export-storage.test.js similarity index 100% rename from packages/cosmic-swingset/test/test-export-storage.js rename to packages/cosmic-swingset/test/export-storage.test.js diff --git a/packages/cosmic-swingset/test/test-make.js b/packages/cosmic-swingset/test/make.test.js similarity index 100% rename from packages/cosmic-swingset/test/test-make.js rename to packages/cosmic-swingset/test/make.test.js diff --git a/packages/cosmic-swingset/test/test-provision-smartwallet.js b/packages/cosmic-swingset/test/provision-smartwallet.test.js similarity index 100% rename from packages/cosmic-swingset/test/test-provision-smartwallet.js rename to packages/cosmic-swingset/test/provision-smartwallet.test.js diff --git a/packages/create-dapp/package.json b/packages/create-dapp/package.json index 3264ff6d4b5..5ed0bde5e7e 100644 --- a/packages/create-dapp/package.json +++ b/packages/create-dapp/package.json @@ -39,7 +39,8 @@ "homepage": "https://github.com/Agoric/agoric-sdk#readme", "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "timeout": "2m", "workerThreads": false diff --git a/packages/create-dapp/test/test-sanity.js b/packages/create-dapp/test/sanity.test.js similarity index 100% rename from packages/create-dapp/test/test-sanity.js rename to packages/create-dapp/test/sanity.test.js diff --git a/packages/deploy-script-support/package.json b/packages/deploy-script-support/package.json index 74598aa3b27..ffe2e236b7c 100644 --- a/packages/deploy-script-support/package.json +++ b/packages/deploy-script-support/package.json @@ -63,7 +63,8 @@ ], "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/deploy-script-support/test/unitTests/test-assertOfferResult.js b/packages/deploy-script-support/test/unitTests/assertOfferResult.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-assertOfferResult.js rename to packages/deploy-script-support/test/unitTests/assertOfferResult.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-coreProposalBehavior.js b/packages/deploy-script-support/test/unitTests/coreProposalBehavior.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-coreProposalBehavior.js rename to packages/deploy-script-support/test/unitTests/coreProposalBehavior.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-depositInvitation.js b/packages/deploy-script-support/test/unitTests/depositInvitation.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-depositInvitation.js rename to packages/deploy-script-support/test/unitTests/depositInvitation.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-findInvitationAmount.js b/packages/deploy-script-support/test/unitTests/findInvitationAmount.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-findInvitationAmount.js rename to packages/deploy-script-support/test/unitTests/findInvitationAmount.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-getBundlerMaker.js b/packages/deploy-script-support/test/unitTests/getBundlerMaker.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-getBundlerMaker.js rename to packages/deploy-script-support/test/unitTests/getBundlerMaker.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-install.js b/packages/deploy-script-support/test/unitTests/install.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-install.js rename to packages/deploy-script-support/test/unitTests/install.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-installInPieces.js b/packages/deploy-script-support/test/unitTests/installInPieces.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-installInPieces.js rename to packages/deploy-script-support/test/unitTests/installInPieces.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-offer.js b/packages/deploy-script-support/test/unitTests/offer.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-offer.js rename to packages/deploy-script-support/test/unitTests/offer.test.js diff --git a/packages/deploy-script-support/test/unitTests/test-startInstance.js b/packages/deploy-script-support/test/unitTests/startInstance.test.js similarity index 100% rename from packages/deploy-script-support/test/unitTests/test-startInstance.js rename to packages/deploy-script-support/test/unitTests/startInstance.test.js diff --git a/packages/governance/package.json b/packages/governance/package.json index fd3344143e7..c362627a95b 100644 --- a/packages/governance/package.json +++ b/packages/governance/package.json @@ -66,7 +66,8 @@ ], "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/governance/test/swingsetTests/committeeBinary/test-committee.js b/packages/governance/test/swingsetTests/committeeBinary/committee.test.js similarity index 100% rename from packages/governance/test/swingsetTests/committeeBinary/test-committee.js rename to packages/governance/test/swingsetTests/committeeBinary/committee.test.js diff --git a/packages/governance/test/swingsetTests/contractGovernor/test-governor.js b/packages/governance/test/swingsetTests/contractGovernor/governor.test.js similarity index 100% rename from packages/governance/test/swingsetTests/contractGovernor/test-governor.js rename to packages/governance/test/swingsetTests/contractGovernor/governor.test.js diff --git a/packages/governance/test/unitTests/test-ballotBuilder.js b/packages/governance/test/unitTests/ballotBuilder.test.js similarity index 100% rename from packages/governance/test/unitTests/test-ballotBuilder.js rename to packages/governance/test/unitTests/ballotBuilder.test.js diff --git a/packages/governance/test/unitTests/test-binaryballotCount.js b/packages/governance/test/unitTests/binaryballotCount.test.js similarity index 100% rename from packages/governance/test/unitTests/test-binaryballotCount.js rename to packages/governance/test/unitTests/binaryballotCount.test.js diff --git a/packages/governance/test/unitTests/test-buildParamManager.js b/packages/governance/test/unitTests/buildParamManager.test.js similarity index 100% rename from packages/governance/test/unitTests/test-buildParamManager.js rename to packages/governance/test/unitTests/buildParamManager.test.js diff --git a/packages/governance/test/unitTests/test-committee.js b/packages/governance/test/unitTests/committee.test.js similarity index 100% rename from packages/governance/test/unitTests/test-committee.js rename to packages/governance/test/unitTests/committee.test.js diff --git a/packages/governance/test/unitTests/test-multiCandidateBallotCount.js b/packages/governance/test/unitTests/multiCandidateBallotCount.test.js similarity index 100% rename from packages/governance/test/unitTests/test-multiCandidateBallotCount.js rename to packages/governance/test/unitTests/multiCandidateBallotCount.test.js diff --git a/packages/governance/test/unitTests/test-paramChangePositions.js b/packages/governance/test/unitTests/paramChangePositions.test.js similarity index 100% rename from packages/governance/test/unitTests/test-paramChangePositions.js rename to packages/governance/test/unitTests/paramChangePositions.test.js diff --git a/packages/governance/test/unitTests/test-paramGovernance.js b/packages/governance/test/unitTests/paramGovernance.test.js similarity index 100% rename from packages/governance/test/unitTests/test-paramGovernance.js rename to packages/governance/test/unitTests/paramGovernance.test.js diff --git a/packages/governance/test/unitTests/test-puppetContractGovernor.js b/packages/governance/test/unitTests/puppetContractGovernor.test.js similarity index 100% rename from packages/governance/test/unitTests/test-puppetContractGovernor.js rename to packages/governance/test/unitTests/puppetContractGovernor.test.js diff --git a/packages/governance/test/unitTests/snapshots/test-committee.js.md b/packages/governance/test/unitTests/snapshots/committee.test.js.md similarity index 92% rename from packages/governance/test/unitTests/snapshots/test-committee.js.md rename to packages/governance/test/unitTests/snapshots/committee.test.js.md index f2768c96489..ace1a859acc 100644 --- a/packages/governance/test/unitTests/snapshots/test-committee.js.md +++ b/packages/governance/test/unitTests/snapshots/committee.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/unitTests/test-committee.js` +# Snapshot report for `test/unitTests/committee.test.js` -The actual snapshot is saved in `test-committee.js.snap`. +The actual snapshot is saved in `committee.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/governance/test/unitTests/snapshots/test-committee.js.snap b/packages/governance/test/unitTests/snapshots/committee.test.js.snap similarity index 100% rename from packages/governance/test/unitTests/snapshots/test-committee.js.snap rename to packages/governance/test/unitTests/snapshots/committee.test.js.snap diff --git a/packages/governance/test/unitTests/test-typedParamManager.js b/packages/governance/test/unitTests/typedParamManager.test.js similarity index 100% rename from packages/governance/test/unitTests/test-typedParamManager.js rename to packages/governance/test/unitTests/typedParamManager.test.js diff --git a/packages/import-manager/package.json b/packages/import-manager/package.json index 2ee5b3eccd0..483aed573db 100644 --- a/packages/import-manager/package.json +++ b/packages/import-manager/package.json @@ -40,7 +40,8 @@ ], "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ] }, "publishConfig": { diff --git a/packages/import-manager/test/unitTests/test-importsA.js b/packages/import-manager/test/unitTests/importsA.test.js similarity index 100% rename from packages/import-manager/test/unitTests/test-importsA.js rename to packages/import-manager/test/unitTests/importsA.test.js diff --git a/packages/inter-protocol/package.json b/packages/inter-protocol/package.json index fe41e580aff..1684b002c87 100644 --- a/packages/inter-protocol/package.json +++ b/packages/inter-protocol/package.json @@ -71,7 +71,8 @@ ], "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/inter-protocol/test/auction/test-auctionBook.js b/packages/inter-protocol/test/auction/auctionBook.test.js similarity index 100% rename from packages/inter-protocol/test/auction/test-auctionBook.js rename to packages/inter-protocol/test/auction/auctionBook.test.js diff --git a/packages/inter-protocol/test/auction/test-auctionContract.js b/packages/inter-protocol/test/auction/auctionContract.test.js similarity index 100% rename from packages/inter-protocol/test/auction/test-auctionContract.js rename to packages/inter-protocol/test/auction/auctionContract.test.js diff --git a/packages/inter-protocol/test/auction/test-proportionalDist.js b/packages/inter-protocol/test/auction/proportionalDist.test.js similarity index 100% rename from packages/inter-protocol/test/auction/test-proportionalDist.js rename to packages/inter-protocol/test/auction/proportionalDist.test.js diff --git a/packages/inter-protocol/test/auction/test-scheduleMath.js b/packages/inter-protocol/test/auction/scheduleMath.test.js similarity index 100% rename from packages/inter-protocol/test/auction/test-scheduleMath.js rename to packages/inter-protocol/test/auction/scheduleMath.test.js diff --git a/packages/inter-protocol/test/auction/test-scheduler.js b/packages/inter-protocol/test/auction/scheduler.test.js similarity index 100% rename from packages/inter-protocol/test/auction/test-scheduler.js rename to packages/inter-protocol/test/auction/scheduler.test.js diff --git a/packages/inter-protocol/test/auction/snapshots/test-auctionContract.js.md b/packages/inter-protocol/test/auction/snapshots/auctionContract.test.js.md similarity index 96% rename from packages/inter-protocol/test/auction/snapshots/test-auctionContract.js.md rename to packages/inter-protocol/test/auction/snapshots/auctionContract.test.js.md index f2aab85afd4..dd10bef3cd4 100644 --- a/packages/inter-protocol/test/auction/snapshots/test-auctionContract.js.md +++ b/packages/inter-protocol/test/auction/snapshots/auctionContract.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/auction/test-auctionContract.js` +# Snapshot report for `test/auction/auctionContract.test.js` -The actual snapshot is saved in `test-auctionContract.js.snap`. +The actual snapshot is saved in `auctionContract.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/inter-protocol/test/auction/snapshots/test-auctionContract.js.snap b/packages/inter-protocol/test/auction/snapshots/auctionContract.test.js.snap similarity index 100% rename from packages/inter-protocol/test/auction/snapshots/test-auctionContract.js.snap rename to packages/inter-protocol/test/auction/snapshots/auctionContract.test.js.snap diff --git a/packages/inter-protocol/test/auction/test-sortedOffers.js b/packages/inter-protocol/test/auction/sortedOffers.test.js similarity index 100% rename from packages/inter-protocol/test/auction/test-sortedOffers.js rename to packages/inter-protocol/test/auction/sortedOffers.test.js diff --git a/packages/inter-protocol/test/test-clientSupport.js b/packages/inter-protocol/test/clientSupport.test.js similarity index 100% rename from packages/inter-protocol/test/test-clientSupport.js rename to packages/inter-protocol/test/clientSupport.test.js diff --git a/packages/inter-protocol/test/test-contractSupport.js b/packages/inter-protocol/test/contractSupport.test.js similarity index 100% rename from packages/inter-protocol/test/test-contractSupport.js rename to packages/inter-protocol/test/contractSupport.test.js diff --git a/packages/inter-protocol/test/test-feeDistributor.js b/packages/inter-protocol/test/feeDistributor.test.js similarity index 100% rename from packages/inter-protocol/test/test-feeDistributor.js rename to packages/inter-protocol/test/feeDistributor.test.js diff --git a/packages/inter-protocol/test/test-interest-labeled.js b/packages/inter-protocol/test/interest-labeled.test.js similarity index 100% rename from packages/inter-protocol/test/test-interest-labeled.js rename to packages/inter-protocol/test/interest-labeled.test.js diff --git a/packages/inter-protocol/test/test-interest-math.js b/packages/inter-protocol/test/interest-math.test.js similarity index 100% rename from packages/inter-protocol/test/test-interest-math.js rename to packages/inter-protocol/test/interest-math.test.js diff --git a/packages/inter-protocol/test/test-interest.js b/packages/inter-protocol/test/interest.test.js similarity index 100% rename from packages/inter-protocol/test/test-interest.js rename to packages/inter-protocol/test/interest.test.js diff --git a/packages/inter-protocol/test/price/test-fluxAggregatorKit.js b/packages/inter-protocol/test/price/fluxAggregatorKit.test.js similarity index 100% rename from packages/inter-protocol/test/price/test-fluxAggregatorKit.js rename to packages/inter-protocol/test/price/fluxAggregatorKit.test.js diff --git a/packages/inter-protocol/test/price/snapshots/test-fluxAggregatorKit.js.md b/packages/inter-protocol/test/price/snapshots/fluxAggregatorKit.test.js.md similarity index 89% rename from packages/inter-protocol/test/price/snapshots/test-fluxAggregatorKit.js.md rename to packages/inter-protocol/test/price/snapshots/fluxAggregatorKit.test.js.md index d19a5e97eed..65fdda37f8a 100644 --- a/packages/inter-protocol/test/price/snapshots/test-fluxAggregatorKit.js.md +++ b/packages/inter-protocol/test/price/snapshots/fluxAggregatorKit.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/price/test-fluxAggregatorKit.js` +# Snapshot report for `test/price/fluxAggregatorKit.test.js` -The actual snapshot is saved in `test-fluxAggregatorKit.js.snap`. +The actual snapshot is saved in `fluxAggregatorKit.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/inter-protocol/test/price/snapshots/test-fluxAggregatorKit.js.snap b/packages/inter-protocol/test/price/snapshots/fluxAggregatorKit.test.js.snap similarity index 100% rename from packages/inter-protocol/test/price/snapshots/test-fluxAggregatorKit.js.snap rename to packages/inter-protocol/test/price/snapshots/fluxAggregatorKit.test.js.snap diff --git a/packages/inter-protocol/test/test-provisionPool.js b/packages/inter-protocol/test/provisionPool.test.js similarity index 100% rename from packages/inter-protocol/test/test-provisionPool.js rename to packages/inter-protocol/test/provisionPool.test.js diff --git a/packages/inter-protocol/test/psm/test-governedPsm.js b/packages/inter-protocol/test/psm/governedPsm.test.js similarity index 100% rename from packages/inter-protocol/test/psm/test-governedPsm.js rename to packages/inter-protocol/test/psm/governedPsm.test.js diff --git a/packages/inter-protocol/test/psm/test-psm.js b/packages/inter-protocol/test/psm/psm.test.js similarity index 100% rename from packages/inter-protocol/test/psm/test-psm.js rename to packages/inter-protocol/test/psm/psm.test.js diff --git a/packages/inter-protocol/test/psm/test-reviver.js b/packages/inter-protocol/test/psm/reviver.test.js similarity index 100% rename from packages/inter-protocol/test/psm/test-reviver.js rename to packages/inter-protocol/test/psm/reviver.test.js diff --git a/packages/inter-protocol/test/psm/snapshots/test-psm.js.md b/packages/inter-protocol/test/psm/snapshots/psm.test.js.md similarity index 96% rename from packages/inter-protocol/test/psm/snapshots/test-psm.js.md rename to packages/inter-protocol/test/psm/snapshots/psm.test.js.md index a582588a4fa..8924104148a 100644 --- a/packages/inter-protocol/test/psm/snapshots/test-psm.js.md +++ b/packages/inter-protocol/test/psm/snapshots/psm.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/psm/test-psm.js` +# Snapshot report for `test/psm/psm.test.js` -The actual snapshot is saved in `test-psm.js.snap`. +The actual snapshot is saved in `psm.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/inter-protocol/test/psm/snapshots/test-psm.js.snap b/packages/inter-protocol/test/psm/snapshots/psm.test.js.snap similarity index 100% rename from packages/inter-protocol/test/psm/snapshots/test-psm.js.snap rename to packages/inter-protocol/test/psm/snapshots/psm.test.js.snap diff --git a/packages/inter-protocol/test/reserve/test-reserve.js b/packages/inter-protocol/test/reserve/reserve.test.js similarity index 100% rename from packages/inter-protocol/test/reserve/test-reserve.js rename to packages/inter-protocol/test/reserve/reserve.test.js diff --git a/packages/inter-protocol/test/reserve/snapshots/test-reserve.js.md b/packages/inter-protocol/test/reserve/snapshots/reserve.test.js.md similarity index 93% rename from packages/inter-protocol/test/reserve/snapshots/test-reserve.js.md rename to packages/inter-protocol/test/reserve/snapshots/reserve.test.js.md index 174c67bcd80..3ee65e55673 100644 --- a/packages/inter-protocol/test/reserve/snapshots/test-reserve.js.md +++ b/packages/inter-protocol/test/reserve/snapshots/reserve.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/reserve/test-reserve.js` +# Snapshot report for `test/reserve/reserve.test.js` -The actual snapshot is saved in `test-reserve.js.snap`. +The actual snapshot is saved in `reserve.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/inter-protocol/test/reserve/snapshots/test-reserve.js.snap b/packages/inter-protocol/test/reserve/snapshots/reserve.test.js.snap similarity index 100% rename from packages/inter-protocol/test/reserve/snapshots/test-reserve.js.snap rename to packages/inter-protocol/test/reserve/snapshots/reserve.test.js.snap diff --git a/packages/inter-protocol/test/smartWallet/test-oracle-integration.js b/packages/inter-protocol/test/smartWallet/oracle-integration.test.js similarity index 100% rename from packages/inter-protocol/test/smartWallet/test-oracle-integration.js rename to packages/inter-protocol/test/smartWallet/oracle-integration.test.js diff --git a/packages/inter-protocol/test/smartWallet/test-psm-integration.js b/packages/inter-protocol/test/smartWallet/psm-integration.test.js similarity index 100% rename from packages/inter-protocol/test/smartWallet/test-psm-integration.js rename to packages/inter-protocol/test/smartWallet/psm-integration.test.js diff --git a/packages/inter-protocol/test/swingsetTests/fluxAggregator/test-fluxAggregator-service-upgrade.js b/packages/inter-protocol/test/swingsetTests/fluxAggregator/fluxAggregator-service-upgrade.test.js similarity index 100% rename from packages/inter-protocol/test/swingsetTests/fluxAggregator/test-fluxAggregator-service-upgrade.js rename to packages/inter-protocol/test/swingsetTests/fluxAggregator/fluxAggregator-service-upgrade.test.js diff --git a/packages/inter-protocol/test/swingsetTests/psmUpgrade/test-psm-upgrade.js b/packages/inter-protocol/test/swingsetTests/psmUpgrade/psm-upgrade.test.js similarity index 100% rename from packages/inter-protocol/test/swingsetTests/psmUpgrade/test-psm-upgrade.js rename to packages/inter-protocol/test/swingsetTests/psmUpgrade/psm-upgrade.test.js diff --git a/packages/inter-protocol/test/swingsetTests/reserve/test-assetReserve-upgrade.js b/packages/inter-protocol/test/swingsetTests/reserve/assetReserve-upgrade.test.js similarity index 100% rename from packages/inter-protocol/test/swingsetTests/reserve/test-assetReserve-upgrade.js rename to packages/inter-protocol/test/swingsetTests/reserve/assetReserve-upgrade.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-auction.js b/packages/inter-protocol/test/vaultFactory/auction.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-auction.js rename to packages/inter-protocol/test/vaultFactory/auction.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-collatRatio.js b/packages/inter-protocol/test/vaultFactory/collatRatio.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-collatRatio.js rename to packages/inter-protocol/test/vaultFactory/collatRatio.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-liquidation-plans.js b/packages/inter-protocol/test/vaultFactory/liquidation-plans.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-liquidation-plans.js rename to packages/inter-protocol/test/vaultFactory/liquidation-plans.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-math.js b/packages/inter-protocol/test/vaultFactory/math.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-math.js rename to packages/inter-protocol/test/vaultFactory/math.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-orderedVaultStore.js b/packages/inter-protocol/test/vaultFactory/orderedVaultStore.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-orderedVaultStore.js rename to packages/inter-protocol/test/vaultFactory/orderedVaultStore.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-prioritizedVaults.js b/packages/inter-protocol/test/vaultFactory/prioritizedVaults.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-prioritizedVaults.js rename to packages/inter-protocol/test/vaultFactory/prioritizedVaults.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-proceeds.js b/packages/inter-protocol/test/vaultFactory/proceeds.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-proceeds.js rename to packages/inter-protocol/test/vaultFactory/proceeds.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-replacePriceAuthority.js b/packages/inter-protocol/test/vaultFactory/replacePriceAuthority.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-replacePriceAuthority.js rename to packages/inter-protocol/test/vaultFactory/replacePriceAuthority.test.js diff --git a/packages/inter-protocol/test/vaultFactory/snapshots/test-vaultFactory.js.md b/packages/inter-protocol/test/vaultFactory/snapshots/vaultFactory.test.js.md similarity index 99% rename from packages/inter-protocol/test/vaultFactory/snapshots/test-vaultFactory.js.md rename to packages/inter-protocol/test/vaultFactory/snapshots/vaultFactory.test.js.md index aed2a1c4ec3..615561a83dc 100644 --- a/packages/inter-protocol/test/vaultFactory/snapshots/test-vaultFactory.js.md +++ b/packages/inter-protocol/test/vaultFactory/snapshots/vaultFactory.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/vaultFactory/test-vaultFactory.js` +# Snapshot report for `test/vaultFactory/vaultFactory.test.js` -The actual snapshot is saved in `test-vaultFactory.js.snap`. +The actual snapshot is saved in `vaultFactory.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/inter-protocol/test/vaultFactory/snapshots/test-vaultFactory.js.snap b/packages/inter-protocol/test/vaultFactory/snapshots/vaultFactory.test.js.snap similarity index 100% rename from packages/inter-protocol/test/vaultFactory/snapshots/test-vaultFactory.js.snap rename to packages/inter-protocol/test/vaultFactory/snapshots/vaultFactory.test.js.snap diff --git a/packages/inter-protocol/test/vaultFactory/test-storage.js b/packages/inter-protocol/test/vaultFactory/storage.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-storage.js rename to packages/inter-protocol/test/vaultFactory/storage.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-storeUtils.js b/packages/inter-protocol/test/vaultFactory/storeUtils.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-storeUtils.js rename to packages/inter-protocol/test/vaultFactory/storeUtils.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-vault-collateralization.js b/packages/inter-protocol/test/vaultFactory/vault-collateralization.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-vault-collateralization.js rename to packages/inter-protocol/test/vaultFactory/vault-collateralization.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-vault-interest.js b/packages/inter-protocol/test/vaultFactory/vault-interest.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-vault-interest.js rename to packages/inter-protocol/test/vaultFactory/vault-interest.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-vault-pause.js b/packages/inter-protocol/test/vaultFactory/vault-pause.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-vault-pause.js rename to packages/inter-protocol/test/vaultFactory/vault-pause.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-vault.js b/packages/inter-protocol/test/vaultFactory/vault.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-vault.js rename to packages/inter-protocol/test/vaultFactory/vault.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-vaultFactory.js b/packages/inter-protocol/test/vaultFactory/vaultFactory.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-vaultFactory.js rename to packages/inter-protocol/test/vaultFactory/vaultFactory.test.js diff --git a/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js b/packages/inter-protocol/test/vaultFactory/vaultLiquidation.test.js similarity index 100% rename from packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js rename to packages/inter-protocol/test/vaultFactory/vaultLiquidation.test.js diff --git a/packages/internal/package.json b/packages/internal/package.json index 59c9bdff001..4fdc076984f 100755 --- a/packages/internal/package.json +++ b/packages/internal/package.json @@ -41,6 +41,10 @@ "ava": { "require": [ "@endo/init/debug.js" + ], + "files": [ + "test/**/test-*.*", + "test/**/*.test.*" ] }, "author": "Agoric", diff --git a/packages/internal/test/test-callback.js b/packages/internal/test/callback.test.js similarity index 100% rename from packages/internal/test/test-callback.js rename to packages/internal/test/callback.test.js diff --git a/packages/internal/test/test-netstring.js b/packages/internal/test/netstring.test.js similarity index 100% rename from packages/internal/test/test-netstring.js rename to packages/internal/test/netstring.test.js diff --git a/packages/internal/test/test-priority-senders.js b/packages/internal/test/priority-senders.test.js similarity index 100% rename from packages/internal/test/test-priority-senders.js rename to packages/internal/test/priority-senders.test.js diff --git a/packages/internal/test/test-storage-test-utils.js b/packages/internal/test/storage-test-utils.test.js similarity index 100% rename from packages/internal/test/test-storage-test-utils.js rename to packages/internal/test/storage-test-utils.test.js diff --git a/packages/internal/test/test-upgrade-api.js b/packages/internal/test/upgrade-api.test.js similarity index 100% rename from packages/internal/test/test-upgrade-api.js rename to packages/internal/test/upgrade-api.test.js diff --git a/packages/internal/test/test-utils.js b/packages/internal/test/utils.test.js similarity index 100% rename from packages/internal/test/test-utils.js rename to packages/internal/test/utils.test.js diff --git a/packages/kmarshal/package.json b/packages/kmarshal/package.json index 253bb73a69f..9cec77bc1b7 100644 --- a/packages/kmarshal/package.json +++ b/packages/kmarshal/package.json @@ -33,7 +33,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/kmarshal/test/test-basic.js b/packages/kmarshal/test/basic.test.js similarity index 100% rename from packages/kmarshal/test/test-basic.js rename to packages/kmarshal/test/basic.test.js diff --git a/packages/network/package.json b/packages/network/package.json index da2a4d42109..c405a07e7d9 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -60,7 +60,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/network/test/test-network-misc.js b/packages/network/test/network-misc.test.js similarity index 100% rename from packages/network/test/test-network-misc.js rename to packages/network/test/network-misc.test.js diff --git a/packages/notifier/package.json b/packages/notifier/package.json index 5a512fe0939..32e6eb33025 100644 --- a/packages/notifier/package.json +++ b/packages/notifier/package.json @@ -68,7 +68,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/notifier/test/test-makeNotifierFromSubscriber.js b/packages/notifier/test/makeNotifierFromSubscriber.test.js similarity index 100% rename from packages/notifier/test/test-makeNotifierFromSubscriber.js rename to packages/notifier/test/makeNotifierFromSubscriber.test.js diff --git a/packages/notifier/test/test-notifier-adaptor.js b/packages/notifier/test/notifier-adaptor.test.js similarity index 100% rename from packages/notifier/test/test-notifier-adaptor.js rename to packages/notifier/test/notifier-adaptor.test.js diff --git a/packages/notifier/test/test-notifier-examples.js b/packages/notifier/test/notifier-examples.test.js similarity index 100% rename from packages/notifier/test/test-notifier-examples.js rename to packages/notifier/test/notifier-examples.test.js diff --git a/packages/notifier/test/test-notifier.js b/packages/notifier/test/notifier.test.js similarity index 100% rename from packages/notifier/test/test-notifier.js rename to packages/notifier/test/notifier.test.js diff --git a/packages/notifier/test/test-publish-kit.js b/packages/notifier/test/publish-kit.test.js similarity index 100% rename from packages/notifier/test/test-publish-kit.js rename to packages/notifier/test/publish-kit.test.js diff --git a/packages/notifier/test/test-stored-subscription.js b/packages/notifier/test/stored-subscription.test.js similarity index 100% rename from packages/notifier/test/test-stored-subscription.js rename to packages/notifier/test/stored-subscription.test.js diff --git a/packages/notifier/test/test-subscriber-examples.js b/packages/notifier/test/subscriber-examples.test.js similarity index 100% rename from packages/notifier/test/test-subscriber-examples.js rename to packages/notifier/test/subscriber-examples.test.js diff --git a/packages/orchestration/package.json b/packages/orchestration/package.json index 698c30130ef..e38cce30d5e 100644 --- a/packages/orchestration/package.json +++ b/packages/orchestration/package.json @@ -59,8 +59,8 @@ "ts": "module" }, "files": [ - "test/**/*.test.js", - "test/**/*.test.ts" + "test/**/test-*.*", + "test/**/*.test.*" ], "nodeArguments": [ "--loader=tsx", diff --git a/packages/orchestration/test/test-tx-encoding.js b/packages/orchestration/test/tx-encoding.test.js similarity index 100% rename from packages/orchestration/test/test-tx-encoding.js rename to packages/orchestration/test/tx-encoding.test.js diff --git a/packages/orchestration/test/test-withdraw-reward.js b/packages/orchestration/test/withdraw-reward.test.js similarity index 100% rename from packages/orchestration/test/test-withdraw-reward.js rename to packages/orchestration/test/withdraw-reward.test.js diff --git a/packages/pegasus/package.json b/packages/pegasus/package.json index 21ab27f7b0f..8c7e9743675 100644 --- a/packages/pegasus/package.json +++ b/packages/pegasus/package.json @@ -60,7 +60,8 @@ ], "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/pegasus/test/test-peg.js b/packages/pegasus/test/peg.test.js similarity index 100% rename from packages/pegasus/test/test-peg.js rename to packages/pegasus/test/peg.test.js diff --git a/packages/smart-wallet/package.json b/packages/smart-wallet/package.json index e18011f9051..0d67b05048b 100644 --- a/packages/smart-wallet/package.json +++ b/packages/smart-wallet/package.json @@ -57,7 +57,8 @@ "homepage": "https://github.com/Agoric/agoric#readme", "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/smart-wallet/test/test-addAsset.js b/packages/smart-wallet/test/addAsset.test.js similarity index 100% rename from packages/smart-wallet/test/test-addAsset.js rename to packages/smart-wallet/test/addAsset.test.js diff --git a/packages/smart-wallet/test/test-invitation1.js b/packages/smart-wallet/test/invitation1.test.js similarity index 100% rename from packages/smart-wallet/test/test-invitation1.js rename to packages/smart-wallet/test/invitation1.test.js diff --git a/packages/smart-wallet/test/test-marshal-contexts.js b/packages/smart-wallet/test/marshal-contexts.test.js similarity index 100% rename from packages/smart-wallet/test/test-marshal-contexts.js rename to packages/smart-wallet/test/marshal-contexts.test.js diff --git a/packages/smart-wallet/test/test-startWalletFactory.js b/packages/smart-wallet/test/startWalletFactory.test.js similarity index 100% rename from packages/smart-wallet/test/test-startWalletFactory.js rename to packages/smart-wallet/test/startWalletFactory.test.js diff --git a/packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/test-walletFactory-service-upgrade.js b/packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/walletFactory-service-upgrade.test.js similarity index 100% rename from packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/test-walletFactory-service-upgrade.js rename to packages/smart-wallet/test/swingsetTests/upgradeWalletFactory/walletFactory-service-upgrade.test.js diff --git a/packages/smart-wallet/test/test-walletFactory.js b/packages/smart-wallet/test/walletFactory.test.js similarity index 100% rename from packages/smart-wallet/test/test-walletFactory.js rename to packages/smart-wallet/test/walletFactory.test.js diff --git a/packages/solo/package.json b/packages/solo/package.json index 78be1de10de..228609bcf02 100644 --- a/packages/solo/package.json +++ b/packages/solo/package.json @@ -69,7 +69,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/solo/test/test-home.js b/packages/solo/test/home.test.js similarity index 100% rename from packages/solo/test/test-home.js rename to packages/solo/test/home.test.js diff --git a/packages/spawner/package.json b/packages/spawner/package.json index b9f8ecf3c27..a0996aca7d9 100644 --- a/packages/spawner/package.json +++ b/packages/spawner/package.json @@ -54,7 +54,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/spawner/test/swingsetTests/contractHost/test-contractHost.js b/packages/spawner/test/swingsetTests/contractHost/contractHost.test.js similarity index 100% rename from packages/spawner/test/swingsetTests/contractHost/test-contractHost.js rename to packages/spawner/test/swingsetTests/contractHost/contractHost.test.js diff --git a/packages/store/package.json b/packages/store/package.json index 26105b60b69..0b9c99fb932 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -50,7 +50,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/store/test/test-AtomicProvider.js b/packages/store/test/AtomicProvider.test.js similarity index 100% rename from packages/store/test/test-AtomicProvider.js rename to packages/store/test/AtomicProvider.test.js diff --git a/packages/store/test/test-store.js b/packages/store/test/store.test.js similarity index 100% rename from packages/store/test/test-store.js rename to packages/store/test/store.test.js diff --git a/packages/swing-store/package.json b/packages/swing-store/package.json index 41503038f91..4e243b719fe 100644 --- a/packages/swing-store/package.json +++ b/packages/swing-store/package.json @@ -41,7 +41,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/swing-store/test/test-bundles.js b/packages/swing-store/test/bundles.test.js similarity index 100% rename from packages/swing-store/test/test-bundles.js rename to packages/swing-store/test/bundles.test.js diff --git a/packages/swing-store/test/test-deletion.js b/packages/swing-store/test/deletion.test.js similarity index 100% rename from packages/swing-store/test/test-deletion.js rename to packages/swing-store/test/deletion.test.js diff --git a/packages/swing-store/test/test-export.js b/packages/swing-store/test/export.test.js similarity index 100% rename from packages/swing-store/test/test-export.js rename to packages/swing-store/test/export.test.js diff --git a/packages/swing-store/test/test-exportImport.js b/packages/swing-store/test/exportImport.test.js similarity index 100% rename from packages/swing-store/test/test-exportImport.js rename to packages/swing-store/test/exportImport.test.js diff --git a/packages/swing-store/test/test-hasher.js b/packages/swing-store/test/hasher.test.js similarity index 100% rename from packages/swing-store/test/test-hasher.js rename to packages/swing-store/test/hasher.test.js diff --git a/packages/swing-store/test/test-import.js b/packages/swing-store/test/import.test.js similarity index 100% rename from packages/swing-store/test/test-import.js rename to packages/swing-store/test/import.test.js diff --git a/packages/swing-store/test/test-repair-metadata.js b/packages/swing-store/test/repair-metadata.test.js similarity index 100% rename from packages/swing-store/test/test-repair-metadata.js rename to packages/swing-store/test/repair-metadata.test.js diff --git a/packages/swing-store/test/test-snapstore.js b/packages/swing-store/test/snapstore.test.js similarity index 100% rename from packages/swing-store/test/test-snapstore.js rename to packages/swing-store/test/snapstore.test.js diff --git a/packages/swing-store/test/test-state.js b/packages/swing-store/test/state.test.js similarity index 100% rename from packages/swing-store/test/test-state.js rename to packages/swing-store/test/state.test.js diff --git a/packages/swingset-liveslots/package.json b/packages/swingset-liveslots/package.json index 9052d45315b..93d12406127 100644 --- a/packages/swingset-liveslots/package.json +++ b/packages/swingset-liveslots/package.json @@ -55,7 +55,8 @@ "homepage": "https://github.com/Agoric/agoric-sdk#readme", "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/swingset-liveslots/test/test-baggage.js b/packages/swingset-liveslots/test/baggage.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-baggage.js rename to packages/swingset-liveslots/test/baggage.test.js diff --git a/packages/swingset-liveslots/test/test-cache.js b/packages/swingset-liveslots/test/cache.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-cache.js rename to packages/swingset-liveslots/test/cache.test.js diff --git a/packages/swingset-liveslots/test/test-collection-schema-refcount.js b/packages/swingset-liveslots/test/collection-schema-refcount.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-collection-schema-refcount.js rename to packages/swingset-liveslots/test/collection-schema-refcount.test.js diff --git a/packages/swingset-liveslots/test/test-collection-upgrade.js b/packages/swingset-liveslots/test/collection-upgrade.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-collection-upgrade.js rename to packages/swingset-liveslots/test/collection-upgrade.test.js diff --git a/packages/swingset-liveslots/test/test-collections.js b/packages/swingset-liveslots/test/collections.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-collections.js rename to packages/swingset-liveslots/test/collections.test.js diff --git a/packages/swingset-liveslots/test/test-dropped-collection-weakrefs.js b/packages/swingset-liveslots/test/dropped-collection-weakrefs.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-dropped-collection-weakrefs.js rename to packages/swingset-liveslots/test/dropped-collection-weakrefs.test.js diff --git a/packages/swingset-liveslots/test/test-durabilityChecks.js b/packages/swingset-liveslots/test/durabilityChecks.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-durabilityChecks.js rename to packages/swingset-liveslots/test/durabilityChecks.test.js diff --git a/packages/swingset-liveslots/test/test-facetiousness.js b/packages/swingset-liveslots/test/facetiousness.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-facetiousness.js rename to packages/swingset-liveslots/test/facetiousness.test.js diff --git a/packages/swingset-liveslots/test/test-gc-sensitivity.js b/packages/swingset-liveslots/test/gc-sensitivity.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-gc-sensitivity.js rename to packages/swingset-liveslots/test/gc-sensitivity.test.js diff --git a/packages/swingset-liveslots/test/test-handled-promises.js b/packages/swingset-liveslots/test/handled-promises.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-handled-promises.js rename to packages/swingset-liveslots/test/handled-promises.test.js diff --git a/packages/swingset-liveslots/test/test-initial-vrefs.js b/packages/swingset-liveslots/test/initial-vrefs.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-initial-vrefs.js rename to packages/swingset-liveslots/test/initial-vrefs.test.js diff --git a/packages/swingset-liveslots/test/test-liveslots-mock-gc.js b/packages/swingset-liveslots/test/liveslots-mock-gc.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-liveslots-mock-gc.js rename to packages/swingset-liveslots/test/liveslots-mock-gc.test.js diff --git a/packages/swingset-liveslots/test/test-liveslots-real-gc.js b/packages/swingset-liveslots/test/liveslots-real-gc.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-liveslots-real-gc.js rename to packages/swingset-liveslots/test/liveslots-real-gc.test.js diff --git a/packages/swingset-liveslots/test/test-liveslots.js b/packages/swingset-liveslots/test/liveslots.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-liveslots.js rename to packages/swingset-liveslots/test/liveslots.test.js diff --git a/packages/swingset-liveslots/test/storeGC/test-lifecycle.js b/packages/swingset-liveslots/test/storeGC/lifecycle.test.js similarity index 100% rename from packages/swingset-liveslots/test/storeGC/test-lifecycle.js rename to packages/swingset-liveslots/test/storeGC/lifecycle.test.js diff --git a/packages/swingset-liveslots/test/storeGC/test-refcount-management.js b/packages/swingset-liveslots/test/storeGC/refcount-management.test.js similarity index 100% rename from packages/swingset-liveslots/test/storeGC/test-refcount-management.js rename to packages/swingset-liveslots/test/storeGC/refcount-management.test.js diff --git a/packages/swingset-liveslots/test/storeGC/test-scalar-store-kind.js b/packages/swingset-liveslots/test/storeGC/scalar-store-kind.test.js similarity index 100% rename from packages/swingset-liveslots/test/storeGC/test-scalar-store-kind.js rename to packages/swingset-liveslots/test/storeGC/scalar-store-kind.test.js diff --git a/packages/swingset-liveslots/test/storeGC/test-weak-key.js b/packages/swingset-liveslots/test/storeGC/weak-key.test.js similarity index 100% rename from packages/swingset-liveslots/test/storeGC/test-weak-key.js rename to packages/swingset-liveslots/test/storeGC/weak-key.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-cease-recognition.js b/packages/swingset-liveslots/test/virtual-objects/cease-recognition.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-cease-recognition.js rename to packages/swingset-liveslots/test/virtual-objects/cease-recognition.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-cross-facet.js b/packages/swingset-liveslots/test/virtual-objects/cross-facet.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-cross-facet.js rename to packages/swingset-liveslots/test/virtual-objects/cross-facet.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-empty-data.js b/packages/swingset-liveslots/test/virtual-objects/empty-data.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-empty-data.js rename to packages/swingset-liveslots/test/virtual-objects/empty-data.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-facets.js b/packages/swingset-liveslots/test/virtual-objects/facets.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-facets.js rename to packages/swingset-liveslots/test/virtual-objects/facets.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-kind-changes.js b/packages/swingset-liveslots/test/virtual-objects/kind-changes.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-kind-changes.js rename to packages/swingset-liveslots/test/virtual-objects/kind-changes.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-reachable-vrefs.js b/packages/swingset-liveslots/test/virtual-objects/reachable-vrefs.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-reachable-vrefs.js rename to packages/swingset-liveslots/test/virtual-objects/reachable-vrefs.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-rep-tostring.js b/packages/swingset-liveslots/test/virtual-objects/rep-tostring.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-rep-tostring.js rename to packages/swingset-liveslots/test/virtual-objects/rep-tostring.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-retain-remotable.js b/packages/swingset-liveslots/test/virtual-objects/retain-remotable.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-retain-remotable.js rename to packages/swingset-liveslots/test/virtual-objects/retain-remotable.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-state-shape.js b/packages/swingset-liveslots/test/virtual-objects/state-shape.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-state-shape.js rename to packages/swingset-liveslots/test/virtual-objects/state-shape.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-virtualObjectGC.js b/packages/swingset-liveslots/test/virtual-objects/virtualObjectGC.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-virtualObjectGC.js rename to packages/swingset-liveslots/test/virtual-objects/virtualObjectGC.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-virtualObjectManager.js b/packages/swingset-liveslots/test/virtual-objects/virtualObjectManager.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-virtualObjectManager.js rename to packages/swingset-liveslots/test/virtual-objects/virtualObjectManager.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-vo-real-gc.js b/packages/swingset-liveslots/test/virtual-objects/vo-real-gc.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-vo-real-gc.js rename to packages/swingset-liveslots/test/virtual-objects/vo-real-gc.test.js diff --git a/packages/swingset-liveslots/test/virtual-objects/test-weakcollections-vref-handling.js b/packages/swingset-liveslots/test/virtual-objects/weakcollections-vref-handling.test.js similarity index 100% rename from packages/swingset-liveslots/test/virtual-objects/test-weakcollections-vref-handling.js rename to packages/swingset-liveslots/test/virtual-objects/weakcollections-vref-handling.test.js diff --git a/packages/swingset-liveslots/test/test-vo-test-harness.js b/packages/swingset-liveslots/test/vo-test-harness.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-vo-test-harness.js rename to packages/swingset-liveslots/test/vo-test-harness.test.js diff --git a/packages/swingset-liveslots/test/test-vpid-liveslots.js b/packages/swingset-liveslots/test/vpid-liveslots.test.js similarity index 100% rename from packages/swingset-liveslots/test/test-vpid-liveslots.js rename to packages/swingset-liveslots/test/vpid-liveslots.test.js diff --git a/packages/swingset-runner/package.json b/packages/swingset-runner/package.json index ea023cc5b46..2f4b222cb32 100644 --- a/packages/swingset-runner/package.json +++ b/packages/swingset-runner/package.json @@ -51,7 +51,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/swingset-runner/test/test-demo.js b/packages/swingset-runner/test/demo.test.js similarity index 100% rename from packages/swingset-runner/test/test-demo.js rename to packages/swingset-runner/test/demo.test.js diff --git a/packages/swingset-xsnap-supervisor/package.json b/packages/swingset-xsnap-supervisor/package.json index c5f960205b6..ff23f156312 100644 --- a/packages/swingset-xsnap-supervisor/package.json +++ b/packages/swingset-xsnap-supervisor/package.json @@ -43,7 +43,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/swingset-xsnap-supervisor/test/test-bundle.js b/packages/swingset-xsnap-supervisor/test/bundle.test.js similarity index 100% rename from packages/swingset-xsnap-supervisor/test/test-bundle.js rename to packages/swingset-xsnap-supervisor/test/bundle.test.js diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index d95369d3be9..babd96dac9c 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -54,7 +54,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/telemetry/test/test-flight-recorder.js b/packages/telemetry/test/flight-recorder.test.js similarity index 100% rename from packages/telemetry/test/test-flight-recorder.js rename to packages/telemetry/test/flight-recorder.test.js diff --git a/packages/telemetry/test/test-import.js b/packages/telemetry/test/import.test.js similarity index 100% rename from packages/telemetry/test/test-import.js rename to packages/telemetry/test/import.test.js diff --git a/packages/time/package.json b/packages/time/package.json index 59034ece3ab..34f9ef8224d 100644 --- a/packages/time/package.json +++ b/packages/time/package.json @@ -43,6 +43,10 @@ "ava": { "require": [ "@endo/init/debug.js" + ], + "files": [ + "test/**/test-*.*", + "test/**/*.test.*" ] }, "files": [ diff --git a/packages/time/test/test-timeMath.js b/packages/time/test/timeMath.test.js similarity index 100% rename from packages/time/test/test-timeMath.js rename to packages/time/test/timeMath.test.js diff --git a/packages/vat-data/package.json b/packages/vat-data/package.json index 4c2a3df117d..db8821266ed 100644 --- a/packages/vat-data/package.json +++ b/packages/vat-data/package.json @@ -39,7 +39,8 @@ "@endo/init/debug.js" ], "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ] }, "publishConfig": { diff --git a/packages/vat-data/test/test-absent.js b/packages/vat-data/test/absent.test.js similarity index 100% rename from packages/vat-data/test/test-absent.js rename to packages/vat-data/test/absent.test.js diff --git a/packages/vat-data/test/test-amplify-virtual-class-kits.js b/packages/vat-data/test/amplify-virtual-class-kits.test.js similarity index 100% rename from packages/vat-data/test/test-amplify-virtual-class-kits.js rename to packages/vat-data/test/amplify-virtual-class-kits.test.js diff --git a/packages/vat-data/test/test-durable-classes.js b/packages/vat-data/test/durable-classes.test.js similarity index 100% rename from packages/vat-data/test/test-durable-classes.js rename to packages/vat-data/test/durable-classes.test.js diff --git a/packages/vat-data/test/test-is-instance-virtual-class-kits.js b/packages/vat-data/test/is-instance-virtual-class-kits.test.js similarity index 100% rename from packages/vat-data/test/test-is-instance-virtual-class-kits.js rename to packages/vat-data/test/is-instance-virtual-class-kits.test.js diff --git a/packages/vat-data/test/test-prepare.js b/packages/vat-data/test/prepare.test.js similarity index 100% rename from packages/vat-data/test/test-prepare.js rename to packages/vat-data/test/prepare.test.js diff --git a/packages/vat-data/test/test-present.js b/packages/vat-data/test/present.test.js similarity index 100% rename from packages/vat-data/test/test-present.js rename to packages/vat-data/test/present.test.js diff --git a/packages/vat-data/test/test-scalar-only-keys.js b/packages/vat-data/test/scalar-only-keys.test.js similarity index 100% rename from packages/vat-data/test/test-scalar-only-keys.js rename to packages/vat-data/test/scalar-only-keys.test.js diff --git a/packages/vat-data/test/test-virtual-classes.js b/packages/vat-data/test/virtual-classes.test.js similarity index 100% rename from packages/vat-data/test/test-virtual-classes.js rename to packages/vat-data/test/virtual-classes.test.js diff --git a/packages/vats/package.json b/packages/vats/package.json index a888e7125de..bc8ee102541 100644 --- a/packages/vats/package.json +++ b/packages/vats/package.json @@ -69,7 +69,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/vats/test/test-board-utils.js b/packages/vats/test/board-utils.test.js similarity index 100% rename from packages/vats/test/test-board-utils.js rename to packages/vats/test/board-utils.test.js diff --git a/packages/vats/test/test-boot.js b/packages/vats/test/boot.test.js similarity index 100% rename from packages/vats/test/test-boot.js rename to packages/vats/test/boot.test.js diff --git a/packages/vats/test/test-bootstrapPayment.js b/packages/vats/test/bootstrapPayment.test.js similarity index 100% rename from packages/vats/test/test-bootstrapPayment.js rename to packages/vats/test/bootstrapPayment.test.js diff --git a/packages/vats/test/test-clientBundle.js b/packages/vats/test/clientBundle.test.js similarity index 100% rename from packages/vats/test/test-clientBundle.js rename to packages/vats/test/clientBundle.test.js diff --git a/packages/vats/test/test-demoAMM.js b/packages/vats/test/demoAMM.test.js similarity index 100% rename from packages/vats/test/test-demoAMM.js rename to packages/vats/test/demoAMM.test.js diff --git a/packages/vats/test/test-dump.js b/packages/vats/test/dump.test.js similarity index 100% rename from packages/vats/test/test-dump.js rename to packages/vats/test/dump.test.js diff --git a/packages/vats/test/test-extract.js b/packages/vats/test/extract.test.js similarity index 100% rename from packages/vats/test/test-extract.js rename to packages/vats/test/extract.test.js diff --git a/packages/vats/test/test-ibc-utils.js b/packages/vats/test/ibc-utils.test.js similarity index 100% rename from packages/vats/test/test-ibc-utils.js rename to packages/vats/test/ibc-utils.test.js diff --git a/packages/vats/test/test-lib-board.js b/packages/vats/test/lib-board.test.js similarity index 100% rename from packages/vats/test/test-lib-board.js rename to packages/vats/test/lib-board.test.js diff --git a/packages/vats/test/test-name-hub-published.js b/packages/vats/test/name-hub-published.test.js similarity index 100% rename from packages/vats/test/test-name-hub-published.js rename to packages/vats/test/name-hub-published.test.js diff --git a/packages/vats/test/test-name-hub.js b/packages/vats/test/name-hub.test.js similarity index 100% rename from packages/vats/test/test-name-hub.js rename to packages/vats/test/name-hub.test.js diff --git a/packages/vats/test/test-network.js b/packages/vats/test/network.test.js similarity index 100% rename from packages/vats/test/test-network.js rename to packages/vats/test/network.test.js diff --git a/packages/vats/test/test-priceAuthorityRegistry.js b/packages/vats/test/priceAuthorityRegistry.test.js similarity index 100% rename from packages/vats/test/test-priceAuthorityRegistry.js rename to packages/vats/test/priceAuthorityRegistry.test.js diff --git a/packages/vats/test/test-promise-space.js b/packages/vats/test/promise-space.test.js similarity index 100% rename from packages/vats/test/test-promise-space.js rename to packages/vats/test/promise-space.test.js diff --git a/packages/vats/test/test-repl.js b/packages/vats/test/repl.test.js similarity index 100% rename from packages/vats/test/test-repl.js rename to packages/vats/test/repl.test.js diff --git a/packages/vats/test/test-tokens.js b/packages/vats/test/tokens.test.js similarity index 100% rename from packages/vats/test/test-tokens.js rename to packages/vats/test/tokens.test.js diff --git a/packages/vats/test/test-vat-bank-integration.js b/packages/vats/test/vat-bank-integration.test.js similarity index 100% rename from packages/vats/test/test-vat-bank-integration.js rename to packages/vats/test/vat-bank-integration.test.js diff --git a/packages/vats/test/test-vat-bank.js b/packages/vats/test/vat-bank.test.js similarity index 100% rename from packages/vats/test/test-vat-bank.js rename to packages/vats/test/vat-bank.test.js diff --git a/packages/vats/test/test-vpurse.js b/packages/vats/test/vpurse.test.js similarity index 100% rename from packages/vats/test/test-vpurse.js rename to packages/vats/test/vpurse.test.js diff --git a/packages/vm-config/package.json b/packages/vm-config/package.json index 791ff38541c..a3800fe6631 100644 --- a/packages/vm-config/package.json +++ b/packages/vm-config/package.json @@ -40,7 +40,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/vm-config/test/test-nothing.js b/packages/vm-config/test/nothing.test.js similarity index 100% rename from packages/vm-config/test/test-nothing.js rename to packages/vm-config/test/nothing.test.js diff --git a/packages/vow/package.json b/packages/vow/package.json index ee70956b4b1..302233ad4bd 100755 --- a/packages/vow/package.json +++ b/packages/vow/package.json @@ -37,6 +37,10 @@ "ava": { "require": [ "@endo/init/debug.js" + ], + "files": [ + "test/**/test-*.*", + "test/**/*.test.*" ] }, "author": "Agoric", diff --git a/packages/vow/test/test-disconnect.js b/packages/vow/test/disconnect.test.js similarity index 100% rename from packages/vow/test/test-disconnect.js rename to packages/vow/test/disconnect.test.js diff --git a/packages/vow/test/test-vat.js b/packages/vow/test/vat.test.js similarity index 100% rename from packages/vow/test/test-vat.js rename to packages/vow/test/vat.test.js diff --git a/packages/vow/test/test-watch-utils.js b/packages/vow/test/watch-utils.test.js similarity index 100% rename from packages/vow/test/test-watch-utils.js rename to packages/vow/test/watch-utils.test.js diff --git a/packages/vow/test/test-watch.js b/packages/vow/test/watch.test.js similarity index 100% rename from packages/vow/test/test-watch.js rename to packages/vow/test/watch.test.js diff --git a/packages/wallet/api/package.json b/packages/wallet/api/package.json index c481af923c0..c48c93538c1 100644 --- a/packages/wallet/api/package.json +++ b/packages/wallet/api/package.json @@ -51,7 +51,8 @@ "homepage": "https://github.com/Agoric/agoric#readme", "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/wallet/api/test/test-getPursesNotifier.js b/packages/wallet/api/test/getPursesNotifier.test.js similarity index 100% rename from packages/wallet/api/test/test-getPursesNotifier.js rename to packages/wallet/api/test/getPursesNotifier.test.js diff --git a/packages/wallet/api/test/test-lib-dehydrate.js b/packages/wallet/api/test/lib-dehydrate.test.js similarity index 100% rename from packages/wallet/api/test/test-lib-dehydrate.js rename to packages/wallet/api/test/lib-dehydrate.test.js diff --git a/packages/wallet/api/test/test-lib-wallet.js b/packages/wallet/api/test/lib-wallet.test.js similarity index 100% rename from packages/wallet/api/test/test-lib-wallet.js rename to packages/wallet/api/test/lib-wallet.test.js diff --git a/packages/wallet/api/test/test-middleware.js b/packages/wallet/api/test/middleware.test.js similarity index 100% rename from packages/wallet/api/test/test-middleware.js rename to packages/wallet/api/test/middleware.test.js diff --git a/packages/xsnap-lockdown/package.json b/packages/xsnap-lockdown/package.json index cb0a724c193..6536cba3bae 100644 --- a/packages/xsnap-lockdown/package.json +++ b/packages/xsnap-lockdown/package.json @@ -39,7 +39,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/xsnap-lockdown/test/test-bundle.js b/packages/xsnap-lockdown/test/bundle.test.js similarity index 100% rename from packages/xsnap-lockdown/test/test-bundle.js rename to packages/xsnap-lockdown/test/bundle.test.js diff --git a/packages/xsnap-lockdown/test/test-inspect.js b/packages/xsnap-lockdown/test/inspect.test.js similarity index 100% rename from packages/xsnap-lockdown/test/test-inspect.js rename to packages/xsnap-lockdown/test/inspect.test.js diff --git a/packages/xsnap/api.js b/packages/xsnap/api.js index 15af5cbac09..9c0140bbab7 100644 --- a/packages/xsnap/api.js +++ b/packages/xsnap/api.js @@ -4,7 +4,7 @@ * The version identifier for our meter type. * * TODO Bump this whenever there's a change to metering semantics. - * Also, update golden master test/test-xs-perf.js to reflect new meter + * Also, update golden master test/xs-perf.test.js to reflect new meter * version. */ export const METER_TYPE = 'xs-meter-28'; diff --git a/packages/xsnap/package.json b/packages/xsnap/package.json index 963c7c13bc5..677aef20318 100644 --- a/packages/xsnap/package.json +++ b/packages/xsnap/package.json @@ -64,7 +64,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/xsnap/src/avaXS.js b/packages/xsnap/src/avaXS.js index e3962fcd311..b4ea009f04b 100644 --- a/packages/xsnap/src/avaXS.js +++ b/packages/xsnap/src/avaXS.js @@ -3,7 +3,7 @@ Usage: - node avaXS.js [--debug] test-*.js + node avaXS.js [--debug] *.test.js */ diff --git a/packages/xsnap/test/test-boot-lockdown.js b/packages/xsnap/test/boot-lockdown.test.js similarity index 100% rename from packages/xsnap/test/test-boot-lockdown.js rename to packages/xsnap/test/boot-lockdown.test.js diff --git a/packages/xsnap/test/test-err-stack.js b/packages/xsnap/test/err-stack.test.js similarity index 100% rename from packages/xsnap/test/test-err-stack.js rename to packages/xsnap/test/err-stack.test.js diff --git a/packages/xsnap/test/test-gc.js b/packages/xsnap/test/gc.test.js similarity index 100% rename from packages/xsnap/test/test-gc.js rename to packages/xsnap/test/gc.test.js diff --git a/packages/xsnap/test/test-inspect.js b/packages/xsnap/test/inspect.test.js similarity index 100% rename from packages/xsnap/test/test-inspect.js rename to packages/xsnap/test/inspect.test.js diff --git a/packages/xsnap/test/test-replay.js b/packages/xsnap/test/replay.test.js similarity index 100% rename from packages/xsnap/test/test-replay.js rename to packages/xsnap/test/replay.test.js diff --git a/packages/xsnap/test/snapshots/test-xsnap.js.md b/packages/xsnap/test/snapshots/xsnap.test.js.md similarity index 76% rename from packages/xsnap/test/snapshots/test-xsnap.js.md rename to packages/xsnap/test/snapshots/xsnap.test.js.md index eec90719b35..2851daf4a47 100644 --- a/packages/xsnap/test/snapshots/test-xsnap.js.md +++ b/packages/xsnap/test/snapshots/xsnap.test.js.md @@ -1,6 +1,6 @@ -# Snapshot report for `test/test-xsnap.js` +# Snapshot report for `test/xsnap.test.js` -The actual snapshot is saved in `test-xsnap.js.snap`. +The actual snapshot is saved in `xsnap.test.js.snap`. Generated by [AVA](https://avajs.dev). diff --git a/packages/xsnap/test/snapshots/test-xsnap.js.snap b/packages/xsnap/test/snapshots/xsnap.test.js.snap similarity index 100% rename from packages/xsnap/test/snapshots/test-xsnap.js.snap rename to packages/xsnap/test/snapshots/xsnap.test.js.snap diff --git a/packages/xsnap/test/test-xs-js.js b/packages/xsnap/test/xs-js.test.js similarity index 100% rename from packages/xsnap/test/test-xs-js.js rename to packages/xsnap/test/xs-js.test.js diff --git a/packages/xsnap/test/test-xs-limits.js b/packages/xsnap/test/xs-limits.test.js similarity index 100% rename from packages/xsnap/test/test-xs-limits.js rename to packages/xsnap/test/xs-limits.test.js diff --git a/packages/xsnap/test/test-xs-perf.js b/packages/xsnap/test/xs-perf.test.js similarity index 100% rename from packages/xsnap/test/test-xs-perf.js rename to packages/xsnap/test/xs-perf.test.js diff --git a/packages/xsnap/test/test-xsnap.js b/packages/xsnap/test/xsnap.test.js similarity index 100% rename from packages/xsnap/test/test-xsnap.js rename to packages/xsnap/test/xsnap.test.js diff --git a/packages/zoe/package.json b/packages/zoe/package.json index 3eac2e2f9d6..2720037e361 100644 --- a/packages/zoe/package.json +++ b/packages/zoe/package.json @@ -14,11 +14,11 @@ "postpack": "git clean -f '*.d.ts*'", "test": "ava --verbose", "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js", - "test:unit": "ava 'test/unitTests/**/test-*.js' -T 1m --verbose", - "test:swingset": "ava 'test/swingsetTests/**/test-*.js' -T 10m --verbose", + "test:unit": "ava 'test/unitTests' -T 1m --verbose", + "test:swingset": "ava 'test/swingsetTests' -T 10m --verbose", "test:xs": "yarn test:xs-unit", "test:xs-unit": "ava-xs --verbose", - "test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests/**/test-*.js'", + "test:xs-worker": "SWINGSET_WORKER_TYPE=xs-worker ava -c 2 'test/swingsetTests'", "build-zcfBundle": "yarn build:bundles", "lint-fix": "yarn lint:eslint --fix", "lint": "run-s --continue-on-error lint:*", @@ -87,48 +87,49 @@ "exclude": [ "# path/url/import.meta stuff", "unitTests/contracts/", - "test/swingsetTests/privateArgs/test-privateArgs.js", - "test/swingsetTests/brokenContracts/test-crashingContract.js", - "test/swingsetTests/offerArgs/test-offerArgs.js", - "test/swingsetTests/makeKind/test-makeKind.js", - "test/swingsetTests/zoe/test-zoe.js", - "test/swingsetTests/runMint/test-runMint.js", - "test/unitTests/test-zoe.js", - "test/unitTests/test-scriptedOracle.js", - "test/unitTests/test-makeKind.js", - "test/unitTests/test-instanceStorage.js", - "test/unitTests/contractSupport/test-depositTo.js", - "test/unitTests/contractSupport/test-withdrawFrom.js", - "test/unitTests/contractSupport/test-offerTo.js", - "test/unitTests/zcf/test-zcfSeat.js", - "test/unitTests/zcf/test-zcfSeat-exit.js", + "test/swingsetTests/privateArgs/privateArgs.test.js", + "test/swingsetTests/brokenContracts/crashingContract.test.js", + "test/swingsetTests/offerArgs/offerArgs.test.js", + "test/swingsetTests/makeKind/makeKind.test.js", + "test/swingsetTests/zoe/zoe.test.js", + "test/swingsetTests/runMint/runMint.test.js", + "test/unitTests/zoe.test.js", + "test/unitTests/scriptedOracle.test.js", + "test/unitTests/makeKind.test.js", + "test/unitTests/instanceStorage.test.js", + "test/unitTests/contractSupport/depositTo.test.js", + "test/unitTests/contractSupport/withdrawFrom.test.js", + "test/unitTests/contractSupport/offerTo.test.js", + "test/unitTests/zcf/zcfSeat.test.js", + "test/unitTests/zcf/zcfSeat-exit.test.js", "test/unitTests/zcf/setupZcfTest.js", - "test/unitTests/zcf/test-feeMintAccess.js", + "test/unitTests/zcf/feeMintAccess.test.js", "# import.meta.url by way of setupZcfTest", - "test/unitTests/test-zoe.js", - "test/unitTests/test-zoe-startInstance.js", - "test/unitTests/test-blockedOffers.js", - "test/unitTests/zcf/test-reallocate-empty.js", - "test/unitTests/zcf/test-zoeHelpersWZcf.js", - "test/unitTests/zcf/test-reallocateForZCFMint.js", - "test/unitTests/zcf/test-atomicRearrange.js", - "test/unitTests/zcf/test-zcf.js", - "test/unitTests/zcf/test-allStagedSeatsUsed.js", + "test/unitTests/zoe.test.js", + "test/unitTests/zoe-startInstance.test.js", + "test/unitTests/blockedOffers.test.js", + "test/unitTests/zcf/reallocate-empty.test.js", + "test/unitTests/zcf/zoeHelpersWZcf.test.js", + "test/unitTests/zcf/reallocateForZCFMint.test.js", + "test/unitTests/zcf/atomicRearrange.test.js", + "test/unitTests/zcf/zcf.test.js", + "test/unitTests/zcf/allStagedSeatsUsed.test.js", "# ManualTimer.setWakeup: no function", - "test/unitTests/test-fakePriceAuthority.js", - "test/unitTests/test-manualTimer.js", + "test/unitTests/fakePriceAuthority.test.js", + "test/unitTests/manualTimer.test.js", "# hangs", - "test-makeKind.js", - "test/unitTests/test-scriptedOracle.js", - "test/unitTests/test-zoe.js", - "test/unitTests/zcf/test-allStagedSeatsUsed.js", + "makeKind.test.js", + "test/unitTests/scriptedOracle.test.js", + "test/unitTests/zoe.test.js", + "test/unitTests/zcf/allStagedSeatsUsed.test.js", "# We use SWINGSET_WORKER_TYPE=xs ava to run these...", "swingsetTests" ] }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/zoe/test/swingsetTests/brokenContracts/test-crashingContract.js b/packages/zoe/test/swingsetTests/brokenContracts/crashingContract.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/brokenContracts/test-crashingContract.js rename to packages/zoe/test/swingsetTests/brokenContracts/crashingContract.test.js diff --git a/packages/zoe/test/swingsetTests/makeKind/test-makeKind.js b/packages/zoe/test/swingsetTests/makeKind/makeKind.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/makeKind/test-makeKind.js rename to packages/zoe/test/swingsetTests/makeKind/makeKind.test.js diff --git a/packages/zoe/test/swingsetTests/offerArgs/test-offerArgs.js b/packages/zoe/test/swingsetTests/offerArgs/offerArgs.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/offerArgs/test-offerArgs.js rename to packages/zoe/test/swingsetTests/offerArgs/offerArgs.test.js diff --git a/packages/zoe/test/swingsetTests/privateArgs/test-privateArgs.js b/packages/zoe/test/swingsetTests/privateArgs/privateArgs.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/privateArgs/test-privateArgs.js rename to packages/zoe/test/swingsetTests/privateArgs/privateArgs.test.js diff --git a/packages/zoe/test/swingsetTests/runMint/test-runMint.js b/packages/zoe/test/swingsetTests/runMint/runMint.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/runMint/test-runMint.js rename to packages/zoe/test/swingsetTests/runMint/runMint.test.js diff --git a/packages/zoe/test/swingsetTests/upgradeCoveredCall/test-coveredCall-service-upgrade.js b/packages/zoe/test/swingsetTests/upgradeCoveredCall/coveredCall-service-upgrade.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/upgradeCoveredCall/test-coveredCall-service-upgrade.js rename to packages/zoe/test/swingsetTests/upgradeCoveredCall/coveredCall-service-upgrade.test.js diff --git a/packages/zoe/test/swingsetTests/zoe/test-zoe-upgrade.js b/packages/zoe/test/swingsetTests/zoe/zoe-upgrade.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/zoe/test-zoe-upgrade.js rename to packages/zoe/test/swingsetTests/zoe/zoe-upgrade.test.js diff --git a/packages/zoe/test/swingsetTests/zoe/test-zoe.js b/packages/zoe/test/swingsetTests/zoe/zoe.test.js similarity index 100% rename from packages/zoe/test/swingsetTests/zoe/test-zoe.js rename to packages/zoe/test/swingsetTests/zoe/zoe.test.js diff --git a/packages/zoe/test/unitTests/test-blockedOffers.js b/packages/zoe/test/unitTests/blockedOffers.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-blockedOffers.js rename to packages/zoe/test/unitTests/blockedOffers.test.js diff --git a/packages/zoe/test/unitTests/test-cleanProposal.js b/packages/zoe/test/unitTests/cleanProposal.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-cleanProposal.js rename to packages/zoe/test/unitTests/cleanProposal.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-bondingCurves.js b/packages/zoe/test/unitTests/contractSupport/bondingCurves.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-bondingCurves.js rename to packages/zoe/test/unitTests/contractSupport/bondingCurves.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-depositTo.js b/packages/zoe/test/unitTests/contractSupport/depositTo.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-depositTo.js rename to packages/zoe/test/unitTests/contractSupport/depositTo.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-offerTo.js b/packages/zoe/test/unitTests/contractSupport/offerTo.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-offerTo.js rename to packages/zoe/test/unitTests/contractSupport/offerTo.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-percentSupport.js b/packages/zoe/test/unitTests/contractSupport/percentSupport.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-percentSupport.js rename to packages/zoe/test/unitTests/contractSupport/percentSupport.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-ratio.js b/packages/zoe/test/unitTests/contractSupport/ratio.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-ratio.js rename to packages/zoe/test/unitTests/contractSupport/ratio.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-stateMachine.js b/packages/zoe/test/unitTests/contractSupport/stateMachine.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-stateMachine.js rename to packages/zoe/test/unitTests/contractSupport/stateMachine.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-withdrawFrom.js b/packages/zoe/test/unitTests/contractSupport/withdrawFrom.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-withdrawFrom.js rename to packages/zoe/test/unitTests/contractSupport/withdrawFrom.test.js diff --git a/packages/zoe/test/unitTests/contractSupport/test-zoeHelpers.js b/packages/zoe/test/unitTests/contractSupport/zoeHelpers.test.js similarity index 100% rename from packages/zoe/test/unitTests/contractSupport/test-zoeHelpers.js rename to packages/zoe/test/unitTests/contractSupport/zoeHelpers.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-atomicSwap.js b/packages/zoe/test/unitTests/contracts/atomicSwap.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-atomicSwap.js rename to packages/zoe/test/unitTests/contracts/atomicSwap.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-auction.js b/packages/zoe/test/unitTests/contracts/auction.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-auction.js rename to packages/zoe/test/unitTests/contracts/auction.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-automaticRefund.js b/packages/zoe/test/unitTests/contracts/automaticRefund.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-automaticRefund.js rename to packages/zoe/test/unitTests/contracts/automaticRefund.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-autoswap.js b/packages/zoe/test/unitTests/contracts/autoswap.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-autoswap.js rename to packages/zoe/test/unitTests/contracts/autoswap.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-barter.js b/packages/zoe/test/unitTests/contracts/barter.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-barter.js rename to packages/zoe/test/unitTests/contracts/barter.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-brokenContract.js b/packages/zoe/test/unitTests/contracts/brokenContract.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-brokenContract.js rename to packages/zoe/test/unitTests/contracts/brokenContract.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-callSpread-calculation.js b/packages/zoe/test/unitTests/contracts/callSpread-calculation.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-callSpread-calculation.js rename to packages/zoe/test/unitTests/contracts/callSpread-calculation.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-callSpread.js b/packages/zoe/test/unitTests/contracts/callSpread.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-callSpread.js rename to packages/zoe/test/unitTests/contracts/callSpread.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-coveredCall-want-pattern.js b/packages/zoe/test/unitTests/contracts/coveredCall-want-pattern.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-coveredCall-want-pattern.js rename to packages/zoe/test/unitTests/contracts/coveredCall-want-pattern.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-coveredCall.js b/packages/zoe/test/unitTests/contracts/coveredCall.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-coveredCall.js rename to packages/zoe/test/unitTests/contracts/coveredCall.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-escrowToVote.js b/packages/zoe/test/unitTests/contracts/escrowToVote.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-escrowToVote.js rename to packages/zoe/test/unitTests/contracts/escrowToVote.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-invitation-details.js b/packages/zoe/test/unitTests/contracts/invitation-details.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-invitation-details.js rename to packages/zoe/test/unitTests/contracts/invitation-details.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-addCollateral.js b/packages/zoe/test/unitTests/contracts/loan/addCollateral.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-addCollateral.js rename to packages/zoe/test/unitTests/contracts/loan/addCollateral.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-borrow.js b/packages/zoe/test/unitTests/contracts/loan/borrow.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-borrow.js rename to packages/zoe/test/unitTests/contracts/loan/borrow.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-close.js b/packages/zoe/test/unitTests/contracts/loan/close.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-close.js rename to packages/zoe/test/unitTests/contracts/loan/close.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-lend.js b/packages/zoe/test/unitTests/contracts/loan/lend.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-lend.js rename to packages/zoe/test/unitTests/contracts/loan/lend.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-liquidate.js b/packages/zoe/test/unitTests/contracts/loan/liquidate.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-liquidate.js rename to packages/zoe/test/unitTests/contracts/loan/liquidate.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-loan-e2e.js b/packages/zoe/test/unitTests/contracts/loan/loan-e2e.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-loan-e2e.js rename to packages/zoe/test/unitTests/contracts/loan/loan-e2e.test.js diff --git a/packages/zoe/test/unitTests/contracts/loan/test-updateDebt.js b/packages/zoe/test/unitTests/contracts/loan/updateDebt.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/loan/test-updateDebt.js rename to packages/zoe/test/unitTests/contracts/loan/updateDebt.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-mintPayments.js b/packages/zoe/test/unitTests/contracts/mintPayments.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-mintPayments.js rename to packages/zoe/test/unitTests/contracts/mintPayments.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-oracle.js b/packages/zoe/test/unitTests/contracts/oracle.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-oracle.js rename to packages/zoe/test/unitTests/contracts/oracle.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-otcDesk.js b/packages/zoe/test/unitTests/contracts/otcDesk.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-otcDesk.js rename to packages/zoe/test/unitTests/contracts/otcDesk.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-ownable-counter.js b/packages/zoe/test/unitTests/contracts/ownable-counter.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-ownable-counter.js rename to packages/zoe/test/unitTests/contracts/ownable-counter.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-priceAggregator.js b/packages/zoe/test/unitTests/contracts/priceAggregator.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-priceAggregator.js rename to packages/zoe/test/unitTests/contracts/priceAggregator.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-scaledPriceAuthority.js b/packages/zoe/test/unitTests/contracts/scaledPriceAuthority.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-scaledPriceAuthority.js rename to packages/zoe/test/unitTests/contracts/scaledPriceAuthority.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-sellTickets.js b/packages/zoe/test/unitTests/contracts/sellTickets.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-sellTickets.js rename to packages/zoe/test/unitTests/contracts/sellTickets.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-simpleExchange.js b/packages/zoe/test/unitTests/contracts/simpleExchange.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-simpleExchange.js rename to packages/zoe/test/unitTests/contracts/simpleExchange.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-throwInOfferHandler.js b/packages/zoe/test/unitTests/contracts/throwInOfferHandler.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-throwInOfferHandler.js rename to packages/zoe/test/unitTests/contracts/throwInOfferHandler.test.js diff --git a/packages/zoe/test/unitTests/contracts/test-useObj.js b/packages/zoe/test/unitTests/contracts/useObj.test.js similarity index 100% rename from packages/zoe/test/unitTests/contracts/test-useObj.js rename to packages/zoe/test/unitTests/contracts/useObj.test.js diff --git a/packages/zoe/test/unitTests/test-fakePriceAuthority.js b/packages/zoe/test/unitTests/fakePriceAuthority.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-fakePriceAuthority.js rename to packages/zoe/test/unitTests/fakePriceAuthority.test.js diff --git a/packages/zoe/test/unitTests/test-instanceStorage.js b/packages/zoe/test/unitTests/instanceStorage.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-instanceStorage.js rename to packages/zoe/test/unitTests/instanceStorage.test.js diff --git a/packages/zoe/test/unitTests/test-issuerStorage.js b/packages/zoe/test/unitTests/issuerStorage.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-issuerStorage.js rename to packages/zoe/test/unitTests/issuerStorage.test.js diff --git a/packages/zoe/test/unitTests/test-makeKind.js b/packages/zoe/test/unitTests/makeKind.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-makeKind.js rename to packages/zoe/test/unitTests/makeKind.test.js diff --git a/packages/zoe/test/unitTests/test-manualTimer.js b/packages/zoe/test/unitTests/manualTimer.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-manualTimer.js rename to packages/zoe/test/unitTests/manualTimer.test.js diff --git a/packages/zoe/test/unitTests/test-offerSafety.js b/packages/zoe/test/unitTests/offerSafety.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-offerSafety.js rename to packages/zoe/test/unitTests/offerSafety.test.js diff --git a/packages/zoe/test/unitTests/test-rightsConservation.js b/packages/zoe/test/unitTests/rightsConservation.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-rightsConservation.js rename to packages/zoe/test/unitTests/rightsConservation.test.js diff --git a/packages/zoe/test/unitTests/test-scriptedOracle.js b/packages/zoe/test/unitTests/scriptedOracle.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-scriptedOracle.js rename to packages/zoe/test/unitTests/scriptedOracle.test.js diff --git a/packages/zoe/test/unitTests/test-testHelpers.js b/packages/zoe/test/unitTests/testHelpers.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-testHelpers.js rename to packages/zoe/test/unitTests/testHelpers.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-allStagedSeatsUsed.js b/packages/zoe/test/unitTests/zcf/allStagedSeatsUsed.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-allStagedSeatsUsed.js rename to packages/zoe/test/unitTests/zcf/allStagedSeatsUsed.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-atomicRearrange.js b/packages/zoe/test/unitTests/zcf/atomicRearrange.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-atomicRearrange.js rename to packages/zoe/test/unitTests/zcf/atomicRearrange.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-feeMintAccess.js b/packages/zoe/test/unitTests/zcf/feeMintAccess.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-feeMintAccess.js rename to packages/zoe/test/unitTests/zcf/feeMintAccess.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-offerHandlerStorage.js b/packages/zoe/test/unitTests/zcf/offerHandlerStorage.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-offerHandlerStorage.js rename to packages/zoe/test/unitTests/zcf/offerHandlerStorage.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-reallocate-empty.js b/packages/zoe/test/unitTests/zcf/reallocate-empty.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-reallocate-empty.js rename to packages/zoe/test/unitTests/zcf/reallocate-empty.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-reallocateForZCFMint.js b/packages/zoe/test/unitTests/zcf/reallocateForZCFMint.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-reallocateForZCFMint.js rename to packages/zoe/test/unitTests/zcf/reallocateForZCFMint.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-zcf.js b/packages/zoe/test/unitTests/zcf/zcf.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-zcf.js rename to packages/zoe/test/unitTests/zcf/zcf.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-zcfSeat-exit.js b/packages/zoe/test/unitTests/zcf/zcfSeat-exit.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-zcfSeat-exit.js rename to packages/zoe/test/unitTests/zcf/zcfSeat-exit.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-zcfSeat.js b/packages/zoe/test/unitTests/zcf/zcfSeat.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-zcfSeat.js rename to packages/zoe/test/unitTests/zcf/zcfSeat.test.js diff --git a/packages/zoe/test/unitTests/zcf/test-zoeHelpersWZcf.js b/packages/zoe/test/unitTests/zcf/zoeHelpersWZcf.test.js similarity index 100% rename from packages/zoe/test/unitTests/zcf/test-zoeHelpersWZcf.js rename to packages/zoe/test/unitTests/zcf/zoeHelpersWZcf.test.js diff --git a/packages/zoe/test/unitTests/test-zoe-env.js b/packages/zoe/test/unitTests/zoe-env.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-zoe-env.js rename to packages/zoe/test/unitTests/zoe-env.test.js diff --git a/packages/zoe/test/unitTests/test-zoe-startInstance.js b/packages/zoe/test/unitTests/zoe-startInstance.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-zoe-startInstance.js rename to packages/zoe/test/unitTests/zoe-startInstance.test.js diff --git a/packages/zoe/test/unitTests/test-zoe.js b/packages/zoe/test/unitTests/zoe.test.js similarity index 100% rename from packages/zoe/test/unitTests/test-zoe.js rename to packages/zoe/test/unitTests/zoe.test.js diff --git a/packages/zoe/test/unitTests/zoe/test-burnInvitation.js b/packages/zoe/test/unitTests/zoe/burnInvitation.test.js similarity index 100% rename from packages/zoe/test/unitTests/zoe/test-burnInvitation.js rename to packages/zoe/test/unitTests/zoe/burnInvitation.test.js diff --git a/packages/zoe/test/unitTests/zoe/test-escrowStorage.js b/packages/zoe/test/unitTests/zoe/escrowStorage.test.js similarity index 100% rename from packages/zoe/test/unitTests/zoe/test-escrowStorage.js rename to packages/zoe/test/unitTests/zoe/escrowStorage.test.js diff --git a/packages/zoe/test/unitTests/zoe/test-installationStorage.js b/packages/zoe/test/unitTests/zoe/installationStorage.test.js similarity index 100% rename from packages/zoe/test/unitTests/zoe/test-installationStorage.js rename to packages/zoe/test/unitTests/zoe/installationStorage.test.js diff --git a/packages/zoe/test/unitTests/zoe/test-instanceAdminStorage.js b/packages/zoe/test/unitTests/zoe/instanceAdminStorage.test.js similarity index 100% rename from packages/zoe/test/unitTests/zoe/test-instanceAdminStorage.js rename to packages/zoe/test/unitTests/zoe/instanceAdminStorage.test.js diff --git a/packages/zone/package.json b/packages/zone/package.json index 2d90095fb53..97e5c8f28e2 100644 --- a/packages/zone/package.json +++ b/packages/zone/package.json @@ -45,7 +45,8 @@ }, "ava": { "files": [ - "test/**/test-*.js" + "test/**/test-*.*", + "test/**/*.test.*" ], "require": [ "@endo/init/debug.js" diff --git a/packages/zone/test/test-exos.js b/packages/zone/test/exos.test.js similarity index 100% rename from packages/zone/test/test-exos.js rename to packages/zone/test/exos.test.js diff --git a/packages/zone/test/test-make-once.js b/packages/zone/test/make-once.test.js similarity index 100% rename from packages/zone/test/test-make-once.js rename to packages/zone/test/make-once.test.js diff --git a/scripts/migrate-test-names.mjs b/scripts/migrate-test-names.mjs new file mode 100755 index 00000000000..d2f16998867 --- /dev/null +++ b/scripts/migrate-test-names.mjs @@ -0,0 +1,59 @@ +#!/usr/bin/env zx +/* eslint-disable @jessie.js/safe-await-separator */ +// @ts-nocheck typecheck would require a package.json with zx +/* global chalk, fs, $ -- provided by zx */ + +/** + * Migrate Ava test names from the "test-foo.js" scheme to "foo.test.js" that is the default in Ava. + * + * Motivations + * 1. It aligns with the prevailing use of Ava, the test runner we use and recommand. + * Customizing tool defaults should have a high bar because of the maintenance + * cost they incur. We keep the `files` config explicit for clarity and linter tooling. + * 2. The naming scheme chosen puts "test" at the front of what is obviously a + * test from its path context. To run a particular test from the CLI requires + * typing "test" three time to pick one: yarn test test/test-something.js. + * With Ava's default it would be yarn test test/something.test.js and typing + * the "so" can autocomplete. + */ + +const usage = ` +Run this script in a package to convert its test names and Ava config. + +To run it over all packages, + yarn lerna exec --concurrency 1 --no-bail '../../scripts/migrate-test-names.mjs' +Then for the couple deeper packages + yarn lerna exec --concurrency 1 --no-bail '../../../scripts/migrate-test-names.mjs' + +`; + +const packageObj = fs.readJsonSync('package.json'); +console.log(`${chalk.bold(`Migrating test names: ${packageObj.name}`)}\n`); +console.log(chalk.blue("Updates 'files' glob in package’s Ava config")); +if (packageObj.ava) { + // For now allow both the old and new globs + packageObj.ava.files = ['test/**/test-*.*', 'test/**/*.test.*']; +} +fs.writeJsonSync('package.json', packageObj, { spaces: 2 }); + +console.log(chalk.blue('Moving test files')); +const { stdout: testFiles } = await $`find test -name 'test-*.*' || true`; +/** @type {string[]} */ +const filenames = testFiles.split('\n').filter(Boolean); + +if (filenames.length === 0) { + console.log(chalk.red('No test files found.')); + console.log('Maybe the migration is already done. To roll back:'); + console.log(' git reset . && git checkout . && git clean -f'); +} + +for (const oldname of filenames) { + const newname = oldname.replace(/test-([^/.]*)\.(.+)$/, '$1.test.$2'); + await $`git mv ${oldname} ${newname}`; +} + +console.log(chalk.blue('Committing changes')); +await $`git add .`; +await $`git commit -m "chore: test glob to Ava default"`; + +console.log('✅');