Skip to content

Commit f00a6d7

Browse files
committed
refactor: fix int test 6
1 parent 1757b7d commit f00a6d7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

packages/plugin-eslint/src/lib/runner.int.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import path from 'node:path';
33
import process from 'node:process';
44
import { fileURLToPath } from 'node:url';
55
import { type MockInstance, describe, expect, it } from 'vitest';
6-
import type { Audit, AuditOutput, Issue } from '@code-pushup/models';
6+
import type {
7+
Audit,
8+
AuditOutput,
9+
AuditOutputs,
10+
Issue,
11+
} from '@code-pushup/models';
712
import { osAgnosticAuditOutputs } from '@code-pushup/test-utils';
813
import type { ESLintTarget } from './config.js';
914
import { listAuditsAndGroups } from './meta/index.js';
@@ -53,19 +58,19 @@ describe('executeRunner', () => {
5358
},
5459
],
5560
});
56-
const res = await runnerFn({ outputDir: '' });
61+
const res: AuditOutputs = await runnerFn({ outputDir: '' });
5762
expect(osAgnosticAuditOutputs(res)).toMatchSnapshot();
5863
});
5964

6065
it.skipIf(process.platform === 'win32')(
6166
'should execute runner with custom config using @code-pushup/eslint-config',
6267
async () => {
63-
const eslintTarget = 'eslint.config.js';
68+
const eslintTarget = 'code-pushup.eslint.config.mjs';
6469
const runnerFn = await createRunnerFunction({
6570
audits: await createAudits(eslintTarget),
6671
targets: [
6772
{
68-
eslintrc: 'code-pushup.eslint.config.mjs',
73+
eslintrc: eslintTarget,
6974
patterns: '.',
7075
},
7176
],

0 commit comments

Comments
 (0)