Update unit_testing.md

This commit is contained in:
bt3gl 2022-03-10 19:15:25 +00:00 committed by GitHub
parent 6b7ca63b21
commit f439f22bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,16 @@
## Basic Unit testing
<br>
Functions in a test file to make testing more structural:
* `beforeEach()` - Runs before each test
* `beforeAll()` - Runs before all tests
* `afterEach()` - Runs after each test
* `afterAll()` - Runs after all tests
<br>
A generic unit testing file looks like: