|
Ran
|
Jobs
1
|
Files
7
|
Run time
1min
|
Badge
README BADGES
|
push
github
test: expand coverage for request, response and view behavior (#7112) * achieve 100% test coverage in expressjs * test: remove redirect deprecation coverage cases * test: enhance req.is() tests with additional cases Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com> (cherry picked from commit 786fbf417) * fix lint error Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com> (cherry picked from commit a865e5402) * test: replace sendFile guard mocks with integration cases * test: strengthen request, response and view coverage Replace duplicate view tests with rendering and engine cache regressions. Exercise real toJSON serialization and error handling without overriding JSON.stringify. Verify req.is() behavior for missing content types, bodyless requests and overlapping matches, and ensure app.listen() tests close the server before asserting the callback count. * test: fix engine cache assertions on Windows Remove the trailing newline from the EJS fixture and update the expected output so checkout line-ending conversion does not affect the engine cache tests. --------- Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com> Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
771 of 774 relevant lines covered (99.61%)
2676.67 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 40026125429.1 | 7 |
99.61
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|