mirror of
https://github.com/autistic-symposium/mev-toolkit.git
synced 2025-04-28 03:36:10 -04:00
Update unit_testing.md
This commit is contained in:
parent
6b7ca63b21
commit
f439f22bc2
@ -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…
x
Reference in New Issue
Block a user