1
0

test-js.mjs 378 B

123456789101112
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import { cliArguments, workingDirectory } from '../utils.mjs';
  4. // Start the local validator, or restart it if it is already running.
  5. await $`pnpm validator:restart`;
  6. // Build the client and run the tests.
  7. cd(path.join(workingDirectory, 'clients', 'js'));
  8. await $`pnpm install`;
  9. await $`pnpm build`;
  10. await $`pnpm test ${cliArguments()}`;