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 64aa0f9 commit 81310dcCopy full SHA for 81310dc
template/clients/rust/scripts/client/test-rust.mjs
@@ -7,11 +7,12 @@ import { cliArguments, workingDirectory } from '../utils.mjs';
7
const testArgs = cliArguments();
8
9
const hasSolfmt = await which('solfmt', { nothrow: true });
10
+const sbfOutDir = path.join(workingDirectory, 'target', 'deploy');
11
12
// Run the tests.
13
cd(path.join(workingDirectory, 'clients', 'rust'));
14
if (hasSolfmt) {
- await $`cargo test-sbf ${testArgs} 2>&1 | solfmt`;
15
+ await $`SBF_OUT_DIR=${sbfOutDir} cargo test ${testArgs} 2>&1 | solfmt`;
16
} else {
- await $`cargo test-sbf ${testArgs}`;
17
+ await $`SBF_OUT_DIR=${sbfOutDir} cargo test ${testArgs}`;
18
}
0 commit comments