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

Add unit tests to update functions (use mocking to make this possible) #2

Open
JasoonS opened this issue Jan 12, 2020 · 0 comments
Open
Assignees

Comments

@JasoonS
Copy link
Member

JasoonS commented Jan 12, 2020

We can use something like this: https://codewithhugo.com/jest-mock-spy-module-import/ / https://jestjs.io/docs/en/manual-mocks
or something more bare bones? https://www.npmjs.com/package/mock-require (or https://github.com/theKashey/rewiremock? which is called the best library for this here: https://itnext.io/how-to-mock-dependency-in-a-node-js-and-why-2ad4386f6587)

We can use jest since even though this is assemblyscript since assemblyScript is a subset of typescript.

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

2 participants