Skip to content

Commit 3664522

Browse files
committed
test: add debug logging to diagnose CI issue
1 parent 3883253 commit 3664522

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/src/rules/no-unused-modules.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,16 +1502,10 @@ describe('parser ignores prefixes like BOM and hashbang', () => {
15021502
let errorMessage = '';
15031503

15041504
// Install the plugin and run the lint command in the temp directory
1505-
try {
1506-
execSync(`npm run build`);
1507-
} catch (error) {
1508-
console.log(`build error: ${error.stderr.toString()}`)
1509-
errorMessage = error.stderr.toString();
1510-
}
15111505
try {
15121506
execSync(`npm install -D ${process.cwd()} && npm run lint`, { cwd: tempDir.name });
15131507
} catch (error) {
1514-
console.log(`lint error: ${error.stderr.toString()}`)
1508+
console.log(`lint error: ${error.stderr.toString()}`);
15151509
errorMessage = error.stderr.toString();
15161510
}
15171511

@@ -1520,5 +1514,5 @@ describe('parser ignores prefixes like BOM and hashbang', () => {
15201514

15211515
// Cleanup
15221516
tempDir.removeCallback();
1523-
});
1517+
}).timeout(100000);
15241518
});

0 commit comments

Comments
 (0)