Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR adds a client_test target to the Makefile #26

Merged
merged 1 commit into from
Jan 4, 2018

Conversation

tinyels
Copy link
Contributor

@tinyels tinyels commented Jan 4, 2018

No description provided.

Copy link
Contributor

@kilbergr kilbergr left a comment

Choose a reason for hiding this comment

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

Looking good. Want to make sure I understand the intention, but otherwise seems good to go to me. Please respond to comment before landing.
Thanks!!!

@@ -27,7 +27,9 @@ client_run_dev:
cd client && \
yarn start
client_run: client_run_dev

client_test:
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Erin! Congrats on your first PR! I'm wondering what the expected outcome of this make command is. I had to brew install watchman to make this work on my machine, so I'm not sure whether something is wrong with the way our dependencies are working.

Besides that, I wanted to confirm that this would yield the following message:

Press `a` to run all tests, or run Jest with `--watchAll`.

Watch Usage
 › Press a to run all tests.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press Enter to trigger a test run.

You press a to run all tests, and then hit q to exit.
Is that right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This make target just proxies to the yarn target that was generated by react create app, which is interactive.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe I read that you can force CRA to skip an interactive mode by setting the CI environment variable. This should be set in our actual CI environment (CircleCI), so it shouldn't case any problems there. We'd have to think about whether or not we want the tests to be interactive for other development.

facebook/create-react-app#784

@tinyels tinyels merged commit fff7c58 into master Jan 4, 2018
@tinyels tinyels deleted the make_client_test branch January 5, 2018 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants