Skip to content

Commit

Permalink
Fix error when Yarn cannot find test script (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdoe committed Oct 3, 2020
1 parent 5689d51 commit c77e191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.js
Expand Up @@ -156,7 +156,7 @@ module.exports = async (input = 'patch', options) => {
enabled: () => options.yarn === true,
task: () => exec('yarn', testCommand).pipe(
catchError(error => {
if (error.message.includes(`Command ${testScript} not found`)) {
if (error.message.includes(`Command "${testScript}" not found`)) {
return [];
}

Expand Down

0 comments on commit c77e191

Please sign in to comment.