Skip to content

Instantly share code, notes, and snippets.

@rjpkuyper
Last active November 26, 2021 09:05
Show Gist options
  • Save rjpkuyper/bdcf8825c2a2f77ca9b072e1301e6dfe to your computer and use it in GitHub Desktop.
Save rjpkuyper/bdcf8825c2a2f77ca9b072e1301e6dfe to your computer and use it in GitHub Desktop.
$ npx nest start &
$ npx wait-on --httpTimeout 5000 http://localhost:3000/cats/health
[Nest] 57 - 11/26/2021, 9:04:18 AM [NestFactory] Starting Nest application...
[Nest] 57 - 11/26/2021, 9:04:18 AM [InstanceLoader] DynamooseModule dependencies initialized +69ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [InstanceLoader] DynamooseCoreModule dependencies initialized +1ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [InstanceLoader] DynamooseModule dependencies initialized +14ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [InstanceLoader] CatsModule dependencies initialized +2ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [RoutesResolver] CatsController {/cats}: +15ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [RouterExplorer] Mapped {/cats, POST} route +4ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [RouterExplorer] Mapped {/cats/:name, GET} route +1ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [RouterExplorer] Mapped {/cats/health, HEAD} route +1ms
[Nest] 57 - 11/26/2021, 9:04:18 AM [NestApplication] Nest application successfully started +3ms
$ npm run test
> [email protected] test
> jest --config ./__e2e__/jest-e2e.json --no-cache
PASS __e2e__/cats.e2e-spec.ts (13.606 s)
cats (e2e)
✓ create a cat (456 ms)
✓ get a cat (63 ms)
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 13.775 s
Ran all test suites.
Saving cache for successful job
Creating cache main-1...
node_modules/: found 27446 matching files and directories
.npm/: found 5574 matching files and directories
Uploading cache.zip to https://storage.googleapis.com/gitlab-com-runners-cache/project/31617517/main-1
Created cache
Cleaning up project directory and file based variables
00:00
Job succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment