Skip to content

Commit aeb430d

Browse files
fix: Tests
1 parent 972b25e commit aeb430d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

test/utils/removeInfra.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export async function removeInfra(
88
) {
99
lldProcess?.kill();
1010

11-
let command = `node ../../dist/lldebugger.mjs --remove ${args?.join(' ')}`;
11+
let command = `node ../../dist/lldebugger.mjs --remove -v ${args?.join(' ')}`;
1212

1313
if (process.env.REAL_NPM === 'true') {
14-
command = `lld --remove ${args?.join(' ')}`;
14+
command = `lld --remove -v ${args?.join(' ')}`;
1515
}
1616

1717
await execSync(command, {

test/utils/startDebugger.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export async function startDebugger(folder: string, args: string[] = []) {
1616
}
1717

1818
async function startDebuggerInternal(folder: string, args: string[] = []) {
19+
const argsI = [...args];
20+
1921
console.log('Starting LLD...');
2022

2123
let testMonorepo = false;
@@ -27,22 +29,22 @@ async function startDebuggerInternal(folder: string, args: string[] = []) {
2729
folderParts[folderParts.length - 2] +
2830
'/' +
2931
folderParts[folderParts.length - 1];
30-
args.push(`-m ${testProjectFolder}`);
32+
argsI.push(`-m ${testProjectFolder}`);
3133
}
3234

3335
if (process.env.OBSERVABLE_MODE === 'true') {
34-
args.push('-o');
36+
argsI.push('-o');
3537
}
3638

37-
args.push('-v');
39+
argsI.push('-v');
3840

3941
let command = `node ${
4042
testMonorepo ? '' : '../../'
41-
}dist/lldebugger.mjs ${args?.join(' ')}`;
43+
}dist/lldebugger.mjs ${argsI?.join(' ')}`;
4244

4345
if (process.env.REAL_NPM === 'true') {
4446
console.log('Running the debugger with the real NPM');
45-
command = `lld ${args?.join(' ')}`;
47+
command = `lld ${argsI?.join(' ')}`;
4648
} else {
4749
console.log('Running the debugger with just genereted code');
4850
}

0 commit comments

Comments
 (0)