Skip to content

add mock tests - Kaspar Bergert#28

Closed
miiksnii wants to merge 5 commits intotanjaq:mainfrom
miiksnii:main
Closed

add mock tests - Kaspar Bergert#28
miiksnii wants to merge 5 commits intotanjaq:mainfrom
miiksnii:main

Conversation

@miiksnii
Copy link
Copy Markdown

--------------------------|---------|----------|---------|---------|-------------------

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 100 100 100 100
User-Register 100 100 100 100
app.js 100 100 100 100
User-Register/validation 100 100 100 100
validateEmail.js 100 100 100 100
validatePassword.js 100 100 100 100
validateUsername.js 100 100 100 100
-------------------------- --------- ---------- --------- --------- -------------------

Test Suites: 5 passed, 5 total
Tests: 39 passed, 39 total
Snapshots: 0 total
Time: 19.474 s, estimated 20 s

testid on jooksutatud kooli arvutil, seega on testid ka aeglased.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

API & Mocked Tests and Coverage

Purpose: Validate README requirements for regular tests, mocked email tests, coverage, and runtime comparison.
Status: ❌ FAIL
Regular tests (app.test.js): ✅ PASS (23497 ms)
Mocked tests (app.mock.test.js): ✅ PASS (1306 ms)
Coverage gate (both runs at 100%): ❌ FAIL
Runtime gate (regular > mocked): ✅ PASS
Regular coverage: lines=100%, statements=100%, functions=100%, branches=100%
Mocked coverage: lines=82.85%, statements=81.57%, functions=80%, branches=81.81%
Run details: https://github.com/tanjaq/User-Register/actions/runs/23493229726
PR checks: https://github.com/tanjaq/User-Register/pull/28/checks
Where to look: Inspect the Run regular tests, Run mocked email tests, Enforce 100% coverage, and Enforce runtime rule logs in this run.

@tanjaq tanjaq closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants