test.mjs 391 B

123456789101112
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. workingDirectory,
  6. } from '../utils.mjs';
  7. const [folder, ...args] = cliArguments();
  8. const sbfOutDir = path.join(workingDirectory, 'target', 'deploy');
  9. const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
  10. await $`RUST_LOG=error SBF_OUT_DIR=${sbfOutDir} cargo test --manifest-path ${manifestPath} ${args}`;