Tone.js/test/scripts/test_integrations.mjs

16 lines
392 B
JavaScript
Raw Normal View History

#!/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`;
});
}