Skip to content

Commit

Permalink
lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Jun 8, 2021
1 parent d6ef8fd commit 297c372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ let { register, create, VERSION, createRepl }: typeof tsNodeTypes = {} as any;
test.beforeAll(async () => {
const totalTries = process.platform === 'win32' ? 5 : 1;
let tries = 0;
while(true) {
while (true) {
try {
rimrafSync(join(TEST_DIR, 'node_modules'));
await promisify(childProcessExec)(`npm install`, { cwd: TEST_DIR });
const packageLockPath = join(TEST_DIR, 'package-lock.json');
existsSync(packageLockPath) && unlinkSync(packageLockPath);
break;
} catch(e) {
} catch (e) {
tries++;
if(tries >= totalTries) throw e;
if (tries >= totalTries) throw e;
}
}
({ register, create, VERSION, createRepl } = testsDirRequire('ts-node'));
Expand Down

0 comments on commit 297c372

Please sign in to comment.