Skip to content

Commit f4fa12f

Browse files
committed
refactor: wip
1 parent e773922 commit f4fa12f

3 files changed

Lines changed: 1924 additions & 379 deletions

File tree

‎e2e/plugin-knip-e2e/tests/knip-reporter.e2e.test.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,14 @@ describe('knip reporter for code pushup audits', () => {
3737

3838
it('should execute knip with custom reporter and generate report', async () => {
3939
const outputFile = path.join(reporterSetupDir, 'knip-report.json');
40-
const customReporterOptions = JSON.stringify({
41-
outputFile: 'knip-report.json',
42-
});
4340

4441
const { code } = await executeProcess({
4542
command: 'npx',
4643
args: [
4744
'knip',
4845
'--no-exit-code',
4946
`--reporter=${reporterPath}`,
50-
`--reporter-options=${customReporterOptions}`,
47+
`--reporter-options='{"outputFile":"knip-report.json"}'`,
5148
],
5249
cwd: reporterSetupDir,
5350
});

0 commit comments

Comments
 (0)