We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f5796 commit 448e926Copy full SHA for 448e926
scripts/rust/test.mjs
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env zx
2
+import 'zx/globals';
3
+import { cliArguments, workingDirectory } from '../utils.mjs';
4
+
5
+const [folder, ...args] = cliArguments();
6
+const sbfOutDir = path.join(workingDirectory, 'target', 'deploy');
7
+const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
8
+await $`RUST_LOG=error SBF_OUT_DIR=${sbfOutDir} cargo test --manifest-path ${manifestPath} ${args}`;
0 commit comments