Skip to content

Commit 691aba5

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import typescriptConfig from '../../../config/typescript';
44

55
import { RuleTester } from '../rule-tester';
66
import { expect } from 'chai';
7-
import { execSync } from 'child_process';
7+
import { exec, execSync } from 'child_process';
88
import fs from 'fs';
99
import eslintPkg from 'eslint/package.json';
1010
import path from 'path';
@@ -1501,6 +1501,13 @@ describe('parser ignores prefixes like BOM and hashbang', () => {
15011501

15021502
let errorMessage = '';
15031503

1504+
// Build the plugin
1505+
try {
1506+
execSync('npm run build');
1507+
} catch (_) {
1508+
/* ignore */
1509+
}
1510+
15041511
// Install the plugin and run the lint command in the temp directory
15051512
try {
15061513
execSync(`npm install -D ${process.cwd()} && npm run lint`, { cwd: tempDir.name });

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy