diff --git a/package.json b/package.json index b718f2b..2a7a110 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "better-phpunit", "displayName": "Better PHPUnit", "description": "A better PHPUnit test runner", - "version": "1.6.1", + "version": "1.6.2", "publisher": "calebporzio", "engines": { "vscode": "^1.74.0" diff --git a/src/phpunit-command.js b/src/phpunit-command.js index e1ba951..03c3684 100644 --- a/src/phpunit-command.js +++ b/src/phpunit-command.js @@ -123,7 +123,7 @@ module.exports = class PhpUnitCommand { return false; } - const isPest = fs.readFileSync(composerJson, 'utf8').includes('pestphp/pest'); + const isPest = fs.readFileSync(composerJson, 'utf8').includes('"pestphp/pest"'); const end = Date.now(); console.log(`Checking for Pest: ${end - start}ms`) diff --git a/test/project-stub/composer.json b/test/project-stub/composer.json index 4890050..ae03831 100644 --- a/test/project-stub/composer.json +++ b/test/project-stub/composer.json @@ -9,5 +9,10 @@ ], "require": { "phpunit/phpunit": "^6.4" + }, + "config": { + "allow-plugins": { + "pestphp/pest-plugin": true + } } } diff --git a/test/project-stub/sub-directory/composer.json b/test/project-stub/sub-directory/composer.json index 68c5369..a7fc873 100644 --- a/test/project-stub/sub-directory/composer.json +++ b/test/project-stub/sub-directory/composer.json @@ -8,5 +8,10 @@ ], "require": { "phpunit/phpunit": "^6.4" + }, + "config": { + "allow-plugins": { + "pestphp/pest-plugin": true + } } }