@samitouri / QOS-React-2 / commits / e760d1fb0f

Fixed test script for DevTools build config (#19295)

Brian Vaughn committed Jul 9, 2020 at 10:49 UTC e760d1fb0fc38d9075131c384fb6eebe5cb43d8c
1 file changed +3 -3
scripts/jest/jest-cli.js
+3 -3
@@ -229,12 +229,12 @@ function validateOptions() {
229 function getCommandArgs() {
230 // Add the correct Jest config.
231 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) {
235 args.push(buildConfig);
236 } else if (argv.persistent) {
237 args.push(persistentConfig);
236 - } else if (argv.project === 'devtools') {
237 - args.push(devToolsConfig);
238 } else if (isWWWConfig()) {
239 args.push(wwwConfig);
240 } else if (isOSSConfig()) {