You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2022. It is now read-only.
Yury Delendik edited this page Feb 15, 2018
·
6 revisions
The WebAssembly Studio mostly relies one unit tests to verify the functionality. The architecture (react + flux) was chosen just for this reason. We are using the jest as our testing platform.
Execution
The tests are executed by running npm run test command. That includes execution of the ts-lint.
It's possible to run the unit tests using jest command. Running it via the jest command allows, e.g. to specify the particular test, update the snapshot, etc.
Creation of a unit test
The unit tests are location at the "tests/" folder and further grouped by particular component or action. To verify the components state we are using enzyme testing utilities.
The jest allows to replace modules with mocks -- that will allow to simply unit test creation.