mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-29 00:41:58 +00:00
fix(test): add src/torch-config.mjs to e2e test environment
- Ensure `src/torch-config.mjs` is copied to the temporary test directory in `test/scheduler-preflight-lock.e2e.test.mjs`. - Fixes `ERR_MODULE_NOT_FOUND` in CI during `test:integration:e2e`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
09bb01be3c
commit
08febcda75
3 files changed
+1
-61
No files matched your search
@@ -47,6 +47,7 @@ async function setupFixture({ lockShellBody = ':', schedulerPolicy = {} }) {
|
||||
await fs.copyFile(path.resolve('scripts/agent/scheduler-lock.mjs'), path.join(scriptsDir, 'scheduler-lock.mjs'));
|
||||
await fs.copyFile(path.resolve('src/utils.mjs'), path.join(root, 'src', 'utils.mjs'));
|
||||
await fs.copyFile(path.resolve('src/constants.mjs'), path.join(root, 'src', 'constants.mjs'));
|
||||
await fs.copyFile(path.resolve('src/torch-config.mjs'), path.join(root, 'src', 'torch-config.mjs'));
|
||||
await fs.writeFile(
|
||||
path.join(scriptsDir, 'verify-run-artifacts.mjs'),
|
||||
'#!/usr/bin/env node\nprocess.exit(0);\n',
|
||||
|
||||
Reference in new issue
Block a user