Skip to content

Commit cb737d5

Browse files
committed
test(scripts/pre-commit): remove extraneous quotes in custom test command cases
Only the OS/shell should remove the quotes: yargs/yargs#1324
1 parent 511b18f commit cb737d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scripts/__tests__/pre-commit.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ cases(
138138
args: ['--testCommand', '--config', 'some-config.js'],
139139
},
140140
'overrides built-in test command with --testCommand': {
141-
args: ['--testCommand', '"yarn test:custom --findRelatedTests foo.js"'],
141+
args: ['--testCommand', 'yarn test:custom --findRelatedTests foo.js'],
142142
},
143143
'overrides built-in test command with --test-command': {
144-
args: ['--test-command', '"yarn test:custom --findRelatedTests foo.js"'],
144+
args: ['--test-command', 'yarn test:custom --findRelatedTests foo.js'],
145145
},
146146
'overrides built-in test command with --testCommand and forwards args': {
147147
args: [
@@ -154,15 +154,15 @@ cases(
154154
args: [
155155
'--verbose',
156156
'--test-command',
157-
'"yarn test:custom --findRelatedTests foo.js"',
157+
'yarn test:custom --findRelatedTests foo.js',
158158
],
159159
},
160160
'disables DocToc, overrides built-in test command, and forwards args': {
161161
args: [
162162
'--verbose',
163163
'--no-toc',
164164
'--test-command',
165-
'"yarn test:custom --findRelatedTests foo.js"',
165+
'yarn test:custom --findRelatedTests foo.js',
166166
'--some-other-arg',
167167
],
168168
},

0 commit comments

Comments
 (0)