test-js.mjs 344 B

123456789101112
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import { workingDirectory } from '../utils.mjs';
  4. // Start the local validator if it's not 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 ${argv._}`;