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

There are no tests/ no test strategy yet #16

Open
nvh95 opened this issue Apr 4, 2022 · 2 comments
Open

There are no tests/ no test strategy yet #16

nvh95 opened this issue Apr 4, 2022 · 2 comments
Labels
enhancement Enhancement to current features/ behaviors

Comments

@nvh95
Copy link
Owner

nvh95 commented Apr 4, 2022

Now, jest-preview hasn't had tests for its source code. So whenever we add a new feature, we just update the demo code at /demo then see if our new code works with the demo. This strategy does not scale if the number of features increases in the future. Also, we are not confident that old features are getting broken.

So, we need to find a test strategy to maintain the quality of code and help to build new features by TDD.

@nvh95 nvh95 added the enhancement Enhancement to current features/ behaviors label Apr 4, 2022
@nvh95
Copy link
Owner Author

nvh95 commented May 4, 2022

Idea: e2e strategy.
Just have an example that has many CSS strategies (App.test.tsx), then assert if they are rendering correctly.

  • snapshot
  • explicit asserting

@nvh95
Copy link
Owner Author

nvh95 commented Aug 16, 2022

TODO

  • To run all tests in examples folder
  • Can we leverage it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to current features/ behaviors
Projects
None yet
Development

No branches or pull requests

1 participant