File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/plugin-eslint/src/lib/meta Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import path from 'node:path' ;
22import { fileURLToPath } from 'node:url' ;
33import type { MockInstance } from 'vitest' ;
4+ import {
5+ NX_IGNORED_FILES_TO_RESTORE ,
6+ restoreRenamedFiles ,
7+ } from '@code-pushup/test-utils' ;
48import type { ESLintTarget } from '../config.js' ;
59import type { RuleData } from './parse.js' ;
610import { 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
You can’t perform that action at this time.
0 commit comments