koatty_exception
Version:
Exception handler for koatty.
43 lines (33 loc) ⢠2.08 kB
Plain Text
> koatty_exception@2.0.7 test /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-exception
> npm run eslint && jest --passWithNoTests
> koatty_exception@2.0.7 eslint
> eslint --ext .ts,.js ./
/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-exception/src/exception.ts
98:19 warning The `Function` type accepts any function-like value.
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
ā 1 problem (0 errors, 1 warning)
PASS test/output.test.ts
PASS test/utils.test.ts
PASS test/examples.test.ts
š¦ report is created on: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-exception/jest_html_reporters.html
--------------|---------|----------|---------|---------|-------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
--------------|---------|----------|---------|---------|-------------------------------------
All files | 71.78 | 55.26 | 72.72 | 71.68 |
code.ts | 84.21 | 26.08 | 75 | 84.21 | 514-549
exception.ts | 40.4 | 22.03 | 55.55 | 40.4 | 110,185-188,199-200,214-217,237-408
index.ts | 100 | 100 | 100 | 100 |
output.ts | 96.96 | 92.3 | 100 | 96.96 | 82
utils.ts | 96.55 | 94.44 | 100 | 96.42 | 57
--------------|---------|----------|---------|---------|-------------------------------------
=============================== Coverage summary ===============================
Statements : 71.78% ( 201/280 )
Branches : 55.26% ( 84/152 )
Functions : 72.72% ( 24/33 )
Lines : 71.68% ( 200/279 )
================================================================================
Test Suites: 3 passed, 3 total
Tests: 58 passed, 58 total
Snapshots: 0 total
Time: 10.567 s
Ran all test suites.