mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 03:53:07 +00:00
16 lines
392 B
JavaScript
16 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`;
|
||
|
});
|
||
|
}
|