Skip to content

Commit d2de7bb

Browse files
committed
test(plugin-eslint): fix unit tests
1 parent 146132a commit d2de7bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/plugin-eslint/src/lib/runner/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function executeLint({
4545
...(typeof eslintrc === 'object' ? ['--no-eslintrc'] : []),
4646
'--no-error-on-unmatched-pattern',
4747
'--format=json',
48-
`--output-file=${outputFile}`,
48+
`--output-file=${filePathToCliArg(outputFile)}`,
4949
...toArray(patterns).map(pattern =>
5050
// globs need to be escaped on Unix
5151
platform() === 'win32' ? pattern : `'${pattern}'`,

packages/plugin-eslint/src/lib/runner/lint.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { lint } from './lint.js';
1111
* - With number: eslint-report-123.json (with dash and digits)
1212
*/
1313
const ESLINT_REPORT_FILENAME_PATTERN =
14-
/--output-file=\.code-pushup\/eslint\/eslint-report(?:-\d+)?\.json/;
14+
/--output-file="\.code-pushup\/eslint\/eslint-report(?:-\d+)?\.json"/;
1515

1616
class MockESLint {
1717
calculateConfigForFile = vi.fn().mockImplementation(

0 commit comments

Comments
 (0)