Put in order · JavaScript and TypeScript course · Module 11: Testing with Jest
Full Test Writing Process
Arrange the steps for writing a complete test from start to finish:
Items to put in order
- Act - call the tested function
- Arrange - prepare test data in beforeEach
- Assert - verify the result using expect
- Cleanup - clean up in afterEach
- Define describe and give it a name
You can check the correct answer by solving this task in the CodeWorlds game.