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

State: Global test runner cleanup #3789

Merged
merged 3 commits into from
Mar 5, 2016
Merged

State: Global test runner cleanup #3789

merged 3 commits into from
Mar 5, 2016

Conversation

aduth
Copy link
Contributor

@aduth aduth commented Mar 4, 2016

Follow-up to #3773

This pull request seeks to:

  • Fix an incorrect test import (ui accidentally importing users)
  • Remove unnecessary DOM environment setup and teardown in createReduxStore tests
    • /cc @gwwar : Do you recall why this was necessary? Tests seem to run fine without it.
  • Apply stub to console.error directly in createReduxStore tests

Testing instructions:

Ensure tests pass by running make test

@aduth aduth added Framework [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 4, 2016
@gwwar
Copy link
Contributor

gwwar commented Mar 5, 2016

Do you recall why this was necessary?

I think I needed the window object in one of the earlier revisions


before( () => {
domEnvSetup();
createReduxStore = require( '../' ).createReduxStore;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 Nice that this turned into a simple import, I had trouble with some of the redux middleware previously

@gwwar
Copy link
Contributor

gwwar commented Mar 5, 2016

:shipit:

@gwwar gwwar added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 5, 2016
gziolo added a commit that referenced this pull request Mar 5, 2016
@gziolo gziolo merged commit 350c3e5 into master Mar 5, 2016
@gziolo gziolo deleted the fix/redux-test-cleanup branch March 5, 2016 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants