Skip to content

Commit e760d1f

Browse files
author
Brian Vaughn
authored
Fixed test script for DevTools build config (facebook#19295)
1 parent a5b4492 commit e760d1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/jest/jest-cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,12 @@ function validateOptions() {
229229
function getCommandArgs() {
230230
// Add the correct Jest config.
231231
const args = ['./scripts/jest/jest.js', '--config'];
232-
if (argv.build) {
232+
if (argv.project === 'devtools') {
233+
args.push(devToolsConfig);
234+
} else if (argv.build) {
233235
args.push(buildConfig);
234236
} else if (argv.persistent) {
235237
args.push(persistentConfig);
236-
} else if (argv.project === 'devtools') {
237-
args.push(devToolsConfig);
238238
} else if (isWWWConfig()) {
239239
args.push(wwwConfig);
240240
} else if (isOSSConfig()) {

0 commit comments

Comments
 (0)