Skip to content

Fixed test script for DevTools build config#19295

Merged
bvaughn merged 1 commit intofacebook:masterfrom
bvaughn:fix-test-script-for-devtools
Jul 9, 2020
Merged

Fixed test script for DevTools build config#19295
bvaughn merged 1 commit intofacebook:masterfrom
bvaughn:fix-test-script-for-devtools

Conversation

@bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Jul 9, 2020

Fixes #19293

@bvaughn bvaughn requested a review from rickhanlonii July 9, 2020 14:38
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 9, 2020
// Add the correct Jest config.
const args = ['./scripts/jest/jest.js', '--config'];
if (argv.build) {
if (argv.project === 'devtools') {
Copy link
Contributor Author

@bvaughn bvaughn Jul 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DevTools always uses the build config, but not vice versa, so it needs to come first.

Having one if/else condition flow for two flags seems a bit fragile, but I didn't want to make a larger change here because I'm in the middle of testing a DevTools release.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that makes sense.

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 9, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 693ac40:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Jul 9, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 693ac40

@sizebot
Copy link

sizebot commented Jul 9, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 693ac40

@bvaughn bvaughn merged commit e760d1f into facebook:master Jul 9, 2020
@bvaughn bvaughn deleted the fix-test-script-for-devtools branch July 9, 2020 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevTools test script runs the wrong tests

4 participants