Skip to content

Commit 46c455f

Browse files
committed
Removed vitest reference
1 parent c74e0ea commit 46c455f

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ To use the already created pre-commit hooks of this package, you can simply edit
6565
\Igorsgm\GitHooks\Console\Commands\Hooks\EnlightnPreCommitHook::class, // Enlightn
6666
\Igorsgm\GitHooks\Console\Commands\Hooks\ESLintPreCommitHook::class, // ESLint
6767
\Igorsgm\GitHooks\Console\Commands\Hooks\PrettierPreCommitHook::class, // Prettier
68-
\Igorsgm\GitHooks\Console\Commands\Hooks\Vitest::class, // Vitest
6968
\Igorsgm\GitHooks\Console\Commands\Hooks\PhpInsightsPreCommitHook::class, // PhpInsights
7069
\Igorsgm\GitHooks\Console\Commands\Hooks\RectorPreCommitHook::class, // Rector
7170
],

tests/Datasets/PreCommitHooksDataset.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Igorsgm\GitHooks\Console\Commands\Hooks\PintPreCommitHook;
99
use Igorsgm\GitHooks\Console\Commands\Hooks\PrettierPreCommitHook;
1010
use Igorsgm\GitHooks\Console\Commands\Hooks\RectorPreCommitHook;
11-
use Igorsgm\GitHooks\Console\Commands\Hooks\VitestPreCommitHook;
1211

1312
dataset('pintConfiguration', [
1413
'Config File' => [
@@ -133,18 +132,6 @@
133132
],
134133
]);
135134

136-
dataset('vitestConfiguration', [
137-
'vitest configuration' => [
138-
[
139-
'path' => '../../../../node_modules/.bin/vitest',
140-
'additional_params' => '--changed -- ',
141-
'file_extensions' => '/\.(jsx?|tsx?|vue)$/',
142-
'run_in_docker' => false,
143-
'docker_container' => '',
144-
],
145-
],
146-
]);
147-
148135
$nonExistentPath = [
149136
'path' => 'nonexistent/path',
150137
'phpcs_path' => 'nonexistent/path',
@@ -197,9 +184,4 @@
197184
$nonExistentPath,
198185
RectorPreCommitHook::class,
199186
],
200-
'Vitest' => [
201-
'vitest',
202-
$nonExistentPath,
203-
VitestPreCommitHook::class,
204-
],
205187
]);

tests/Features/Commands/Hooks/ESLintPreCommitHookTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ function ($eslintConfiguration, $listOfFixableJSFiles) {
4343
->expectsOutputToContain('COMMIT FAILED')
4444
->expectsConfirmation('Would you like to attempt to correct files automagically?', 'no')
4545
->assertExitCode(1);
46-
})->with('eslintConfiguration', 'listOfFixableJSFiles')
47-
->skip('ESLint broken during upgrades');
46+
})->with('eslintConfiguration', 'listOfFixableJSFiles');
4847

4948
test('Fails commit when ESLint autofixer does not fix the files completely',
5049
function ($eslintConfiguration, $listOfFixableNonJSFiles) {
@@ -65,8 +64,7 @@ function ($eslintConfiguration, $listOfFixableNonJSFiles) {
6564
->expectsOutputToContain('COMMIT FAILED')
6665
->expectsConfirmation('Would you like to attempt to correct files automagically?', 'yes')
6766
->expectsOutputToContain('ESLint Autofix Failed');
68-
})->with('eslintConfiguration', 'listOfNonFixableJSFiles')
69-
->skip('ESLint broken during upgrades');
67+
})->with('eslintConfiguration', 'listOfNonFixableJSFiles');
7068

7169
test('Commit passes when ESLint fixes the files', function ($eslintConfiguration, $listOfFixableJSFiles) {
7270
$this->config->set('git-hooks.code_analyzers.eslint', $eslintConfiguration);
@@ -89,4 +87,4 @@ function ($eslintConfiguration, $listOfFixableNonJSFiles) {
8987
$this->artisan('git-hooks:pre-commit')
9088
->doesntExpectOutputToContain('ESLint Failed')
9189
->assertSuccessful();
92-
})->with('eslintConfiguration', 'listOfFixableJSFiles')->skip();
90+
})->with('eslintConfiguration', 'listOfFixableJSFiles');

0 commit comments

Comments
 (0)