Skip to content

Commit f8c65ae

Browse files
author
John Doe
committed
refactor: fix file names 2
1 parent cc308d3 commit f8c65ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/plugin-eslint/src/lib/meta/rules.int.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import path from 'node:path';
22
import { fileURLToPath } from 'node:url';
33
import type { MockInstance } from 'vitest';
4+
import {
5+
NX_IGNORED_FILES_TO_RESTORE,
6+
restoreRenamedFiles,
7+
} from '@code-pushup/test-utils';
48
import type { ESLintTarget } from '../config.js';
59
import type { RuleData } from './parse.js';
610
import { listRules } from './rules.js';
@@ -95,7 +99,8 @@ describe('listRules', () => {
9599
const patterns = ['packages/utils/**/*.ts', 'packages/utils/**/*.json'];
96100
const targets: ESLintTarget[] = [{ eslintrc, patterns }];
97101

98-
beforeAll(() => {
102+
beforeAll(async () => {
103+
await restoreRenamedFiles(nxRootDir, NX_IGNORED_FILES_TO_RESTORE);
99104
cwdSpy.mockReturnValue(nxRootDir);
100105
});
101106

0 commit comments

Comments
 (0)