Skip to content

up1/demo-tdd-with-ai

Repository files navigation

1. Create project and install libraries

$npm init -y
$npm install -D jest supertest
$npm install -S express

2. Config test and run test

Edit file package.json

"scripts": {
    "test": "jest --coverage"
}

Run test

$npm test

3. Create test file user.test.js

Fix your test with AI

  • Create file ./app.js with express library

Run test again !!

$npm test

4. Start server

$node server.js

List of urls

More ...

  • Add health check GET /healthz
  • Get user data from postgresql database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published