Skip to content

Commit b886081

Browse files
committed
docs(testing): Enhance section
1 parent 6b2d254 commit b886081

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

docs/CONTRIBUTING.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,21 @@
88

99
## Testing
1010

11-
### Monad tests
11+
### Role based testing
12+
From testing perspective, we are applying a role based approach in order to unify the testing
13+
of the monads and matchable roles. So, in this way, we have just to create tests cases for each role when
14+
we create a new monad or matchable.
1215

13-
From testing perspective, we are applying a role based testing approach. In this case,
14-
the role is monad, and we create tests cases for each monad.
16+
#### Monad
17+
For this role, `map` and `flatMap` are the main operations that we have to test.
1518

16-
check the `src/monads/monads.test.ts` folder for more information.
19+
Check the file `src/monads/monads.test.ts` for more information.
1720

18-
So, you have just to new test cases for your new monad that you are going to implement.
19-
20-
21-
### Matchable tests
22-
23-
From testing perspective, we are applying a role based testing approach. In this case,
24-
the role is matchable, and we create tests cases for each matchable.
21+
#### Matchable
22+
For this role, we have to test the `match` operation.
2523

2624
check the `src/matchable/matchable.test.ts` folder for more information.
2725

28-
So, you have just to new test cases for your new matchable that you are going to implement.
29-
3026

3127
### Specific tests for each monad
3228

0 commit comments

Comments
 (0)