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

Unit testing for the Business logic (the store and webxdc state update processing) #5

Open
Simon-Laux opened this issue Jun 30, 2023 · 0 comments

Comments

@Simon-Laux
Copy link
Contributor

The heart of the app is the store at src/store.ts, it emits and processes all webxdc state updates and builds and application state from them.

What it should do is clear, so it would make sense to create unit tests for everything it should do to ensure it stays working with future changes.

We already have unit tests for some utility functions (src/entryMaths.ts) so that could be used as example on how to add such tests. The tests for it are in src/entryMaths.spec.ts.

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

No branches or pull requests

1 participant