> @practica/error-handling@0.0.3 test > jest --runInBand Determining test suites to run...      RUNS  test/main-error-flows.test.ts    ts-jest[versions] (WARN) Version 5.2.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.  RUNS  test/main-error-flows.test.ts    ts-jest[ts-jest-transformer] (WARN) Got a `.js` file to compile while `allowJs` option is not set to `true` (file: /Users/goldbergyoni/solutions/practica/src/code-templates/libraries/global-context/.dist/index.js). To fix this: - if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json) - if you do not want TypeScript to process your `.js` files, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match `.js` files anymore  RUNS  test/main-error-flows.test.ts    ts-jest[ts-jest-transformer] (WARN) Got a `.js` file to compile while `allowJs` option is not set to `true` (file: /Users/goldbergyoni/solutions/practica/src/code-templates/libraries/global-context/.dist/src/context.js). To fix this: - if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json) - if you do not want TypeScript to process your `.js` files, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match `.js` files anymore  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039627,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039633,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"Error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039636,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039636,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"invalid-input\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039637,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039637,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039637,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039637,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039638,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039639,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039639,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039639,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039639,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039642,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039642,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039643,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039643,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039644,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039644,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039646,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Handling error1"}  RUNS  test/main-error-flows.test.ts    {"level":30,"time":1712468039646,"pid":20710,"hostname":"Yonis-MacBook-Pro-2.local","msg":"Firing metric error with labels {\"errorName\":\"unknown-error\"}"}  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts     PASS  test/main-error-flows.test.ts  RUNS  test/main-error-flows.test.ts     Error handler  RUNS  test/main-error-flows.test.ts     Listen to error events  RUNS  test/main-error-flows.test.ts     ✓ When uncaughtException emitted, error handled should catch and handle the error properly (9 ms)  RUNS  test/main-error-flows.test.ts     Handle error  RUNS  test/main-error-flows.test.ts     ✓ When passing standard AppError object, then all the important properties are passed to the logger  RUNS  test/main-error-flows.test.ts     ✓ When receiving extra custom properties, then standard properties and extra properties are logged  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties (1 ms)  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties (1 ms)  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties (2 ms)  RUNS  test/main-error-flows.test.ts     ✓ When receiving non standard Error input, then calling the logger with all the mandatory properties  RUNS  test/main-error-flows.test.ts      RUNS  test/main-error-flows.test.ts    ------------------|---------|----------|---------|---------|---------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ------------------|---------|----------|---------|---------|---------------------- All files  |  88.43 |  94.44 |  100 |  88.43 |    app-error.ts  |  100 |  100 |  100 |  100 |    error-handler.ts |  87.5 |  94.11 |  100 |  87.5 | 16,20-23,27-30,46-53 ------------------|---------|----------|---------|---------|---------------------- Test Suites: 1 passed, 1 total Tests: 14 passed, 14 total Snapshots: 0 total Time: 4.549 s Ran all test suites.