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

Version 2.0 #2

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

mjaquiery
Copy link

I needed callbacks to get a complex store action to test properly, so I took the chance to make some major revisions to the package. I couldn't submit this as a series of feature requests because of the interdependancy of the overhaul.

The main features are listed below:

  • Revised test syntax to ensure that failed tests fail and passed tests pass properly
  • Collapse mutations and dispatches together so the relative order matters, too
  • Trigger tests are no longer wrapped for expectations by default
  • Add support for custom test functions
  • Added small suite of frequently-used test functions
  • Add support for callbacks after store triggers are fired (e.g. to mock state updates that would be triggered)
  • Added jsdoc documentation to some code
  • Added tests for most functionality

mjaquiery added 11 commits November 8, 2021 16:41
* **Revised test syntax** to ensure that failed tests fail and passed tests pass properly
* **Collapse mutations and dispatches together** so the relative order matters, too
* **Trigger tests are no longer wrapped for expectations by default**
* Add support for custom test functions
* Added small suite of frequently-used test functions
* Add support for callbacks after store triggers are fired (e.g. to mock state updates that would be triggered)
* Added jsdoc documentation to some code
* Added tests for most functionality
* **Revised test syntax** to ensure that failed tests fail and passed tests pass properly
* **Collapse mutations and dispatches together** so the relative order matters, too
* **Trigger tests are no longer wrapped for expectations by default**
* Add support for custom test functions
* Added small suite of frequently-used test functions
* Add support for callbacks after store triggers are fired (e.g. to mock state updates that would be triggered)
* Added jsdoc documentation to some code
* Added tests for most functionality
Moved 'type' check to the end because name and payload checks are more recognisable for debugging when the expectations are listed in the wrong order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant