Tone.js/test/scripts/test_integrations.mjs
Yotam Mann aaf880c925
Using web-test-runner for tests, updating import paths (#1242)
* WIP moving tests to web-test-runner

* updating thresholds

* Adding file extensions

* Testing integrations

* linting

* fixing dep

* moving back to root dir

* prettier all of the files

* updating eslint rules to use with prettier

* remove import package

* moving tsignore around

* removing unneeded ignores

* all tests run on puppeteer, no need for testing guards

* linting

* import type syntax

* cleaning up

* Update package.json
2024-05-03 14:31:14 -04:00

15 lines
392 B
JavaScript

#!/usr/bin/env zx
import "zx/globals";
import { glob } from "glob";
import { basename, resolve } from "path";
const integrations = await glob(resolve(__dirname, "../integration/*"));
for (let dir of integrations) {
await within(async () => {
cd(dir);
// eslint-disable-next-line no-console
console.log("Integration:", basename(dir));
await $`npm i`;
await $`npm run test`;
});
}