test.mjs 385 B

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