$ pnpm test
> nestjs-grpc-exceptions@0.2.1 test /Users/youngkiu/src/nestjs-grpc-exceptions
> jest --
Test environment found at "/Users/youngkiu/node_modules/jest-environment-node/build/index.js" does not export a "getVmContext" method, which is mandatory from Jest 27. This method is a replacement for "runScript".
RUNS test/interceptors/grpc-to-http-interceptor.spec.ts
ELIFECYCLE Test failed. See above for more details.
Success
Install
$ npm i
added 804 packages, and audited 805 packages in 56s
137 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Test
$ npm test
> nestjs-grpc-exceptions@0.2.1 test
> jest --
watchman warning: Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/youngkiu/src/nestjs-grpc-exceptions' ; watchman watch-project '/Users/youngkiu/src/nestjs-grpc-exceptions'`
PASS test/interceptors/grpc-to-http-interceptor.spec.ts
GrpcToHttpInterceptor
✓ Should be defined (3 ms)
✓ Should convert gRPC exceptions to Http exceptions (2 ms)
✓ Should convert gRPC status code to Http status code (1 ms)
✓ Should contain the gRPC exception error message
Test Suites: 1 passed, 1 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: 2.491 s
Ran all test suites.
Fail
Install
Test
Success
Install
Test