diff --git a/plugins/eslint/test/tasks/eslint.test.ts b/plugins/eslint/test/tasks/eslint.test.ts index 37008f3cb..96294184e 100644 --- a/plugins/eslint/test/tasks/eslint.test.ts +++ b/plugins/eslint/test/tasks/eslint.test.ts @@ -42,7 +42,7 @@ describe('eslint', () => { } ) - await expect(task.run()).resolves.toBeUndefined() + await expect(task.run({ command: 'test:local' })).resolves.toBeUndefined() }) it('should fail on linter error', async () => { @@ -56,7 +56,7 @@ describe('eslint', () => { } ) - await expect(task.run()).rejects.toHaveProperty( + await expect(task.run({ command: 'test:local' })).rejects.toHaveProperty( 'details', expect.stringContaining('1 problem (1 error, 0 warnings)') ) diff --git a/plugins/prettier/test/tasks/prettier.test.ts b/plugins/prettier/test/tasks/prettier.test.ts index ba18f6806..809183d91 100644 --- a/plugins/prettier/test/tasks/prettier.test.ts +++ b/plugins/prettier/test/tasks/prettier.test.ts @@ -38,7 +38,7 @@ describe('prettier', () => { ignoreFile: 'nonexistent prettierignore' } ) - await task.run() + await task.run({ command: 'format:local' }) const prettified = await fsp.readFile(path.join(testDirectory, 'unformatted.ts'), 'utf8') expect(prettified).toEqual(formattedDefaultFixture) }) @@ -56,7 +56,7 @@ describe('prettier', () => { } ) - await task.run() + await task.run({ command: 'format:local' }) const prettified = await fsp.readFile(path.join(testDirectory, 'unformatted.ts'), 'utf8') expect(prettified).toEqual(formattedConfigFileFixture) })