mirror of
https://github.com/autistic-symposium/mev-toolkit.git
synced 2025-05-02 06:46:13 -04:00
Update unit_testing.md
This commit is contained in:
parent
6b7ca63b21
commit
f439f22bc2
1 changed files with 11 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue