Skip to content

Commit 74b6bcf

Browse files
committed
test(plugin-eslint): fix unit tests
1 parent 2877a89 commit 74b6bcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ describe('lint', () => {
134134
'--config=".eslintrc.js"',
135135
'--no-error-on-unmatched-pattern',
136136
'--format=json',
137-
expect.stringMatching(/--output-file=\/test\/eslint-report\.\d+\.json/),
138-
expect.stringContaining('**/*.js'), // wraps in quotes on Unix
137+
expect.stringMatching(/--output-file=.*eslint-report\.\d+\.json/),
138+
"'**/*.js'", // wraps in quotes on Unix
139139
],
140140
ignoreExitCode: true,
141-
cwd: MEMFS_VOLUME,
141+
cwd: '/test',
142142
});
143143

144144
expect(eslint.calculateConfigForFile).toHaveBeenCalledTimes(3);

0 commit comments

Comments
 (0)