Commit 6bbca22
authored
feat(doc): update state of tests and touch
## Description
<!-- Please add PR description (don't leave blank) - example: This PR
[adds/removes/fixes/replaces] the [feature/bug/etc] -->
This pull request improves the documentation and coverage of the testing
strategy for `jargons.dev`, reflecting the completion of business logic
test implementation and the integration of more robust API mocking. The
updates provide a clear overview of current test coverage, detail the
organization of test files, and outline next steps for future testing
phases.
### Key Changes
* Updated the reported test coverage to **161 tests across 7 suites**
with a **99.4% success rate**, and clarified coverage for business logic
functions in `tests/README.md`.
* Added detailed breakdowns of business logic test coverage, including
number of test cases and areas covered for `submit-word`, `word-editor`,
`branch`, and `fork` functions.
* Marked Phase 2 (business logic tests) as complete, and described MSW
(Mock Service Worker) integration for realistic API testing.
* Expanded the test directory structure to include fixtures for test
data and GitHub API responses, as well as MSW handlers for API endpoint
mocking.
[[1]](diffhunk://#diff-dacac2ebf9792f0d23c0f922a744486ded01901957d5281290925acd89cf83acL34-R51)
[[2]](diffhunk://#diff-dacac2ebf9792f0d23c0f922a744486ded01901957d5281290925acd89cf83acR241-R258)
* Updated setup instructions to highlight MSW usage and provided
commands for running specific business logic tests.
* Added recommendations for using MSW for API testing and emphasized
testing error scenarios. Updated the roadmap to reflect the completion
of business logic tests and outlined plans for component, enhanced API,
and performance testing.
[[1]](diffhunk://#diff-dacac2ebf9792f0d23c0f922a744486ded01901957d5281290925acd89cf83acR215-R223)
[[2]](diffhunk://#diff-dacac2ebf9792f0d23c0f922a744486ded01901957d5281290925acd89cf83acR241-R258)
### Other Changes
* Clarified the location of the jAI module in the main `README.md` for
easier navigation.
* Updated `PULL_REQUEST_TEMPLATE` to use semantic heading.
## Related Issue
<!-- Please prefix the issue number with Fixes/Resolves - example: Fixes
#123 or Resolves #123 -->
Follow-up to
- #180
- #181
## Screenshots/Screencasts
<!-- Please provide screenshots or video recording that demos your
changes (especially if it's a visual change) -->
NA
## Notes to Reviewer
<!-- Please state here if you added a new npm packages, or any extra
information that can help reviewer better review you changes -->
NAapp/jai module (#183)1 parent 1a4190a commit 6bbca22
3 files changed
Lines changed: 77 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
| |||
48 | 62 | | |
49 | 63 | | |
50 | 64 | | |
51 | | - | |
| 65 | + | |
52 | 66 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
56 | 71 | | |
57 | 72 | | |
58 | 73 | | |
| |||
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
85 | 126 | | |
86 | 127 | | |
87 | 128 | | |
| |||
115 | 156 | | |
116 | 157 | | |
117 | 158 | | |
| 159 | + | |
| 160 | + | |
118 | 161 | | |
119 | 162 | | |
120 | 163 | | |
121 | 164 | | |
122 | 165 | | |
123 | 166 | | |
124 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
125 | 174 | | |
126 | 175 | | |
127 | 176 | | |
| |||
163 | 212 | | |
164 | 213 | | |
165 | 214 | | |
| 215 | + | |
| 216 | + | |
166 | 217 | | |
167 | 218 | | |
168 | 219 | | |
169 | 220 | | |
170 | 221 | | |
171 | 222 | | |
172 | | - | |
| 223 | + | |
173 | 224 | | |
174 | 225 | | |
175 | 226 | | |
| |||
187 | 238 | | |
188 | 239 | | |
189 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
190 | 251 | | |
191 | 252 | | |
192 | 253 | | |
193 | | - | |
194 | | - | |
195 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
196 | 257 | | |
| 258 | + | |
0 commit comments