Skip to content

Commit

Permalink
test: add debug logging to diagnose CI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfaith committed Dec 23, 2024
1 parent f84aea1 commit 5159bce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/src/rules/no-unused-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import typescriptConfig from '../../../config/typescript';

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

let errorMessage = '';

// Build the plugin
try {
execSync('npm run build');
} catch (_) {
/* ignore */
}

// Install the plugin and run the lint command in the temp directory
try {
execSync(`npm install -D ${process.cwd()} && npm run lint`, { cwd: tempDir.name });
Expand Down

0 comments on commit 5159bce

Please sign in to comment.