Skip to content

Commit

Permalink
[backend] chore: Rename system to service (#21)
Browse files Browse the repository at this point in the history
* [backend] chore: Rename system to service
  • Loading branch information
helloitsdave authored Feb 2, 2024
1 parent c75ad18 commit a55ccd0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-service-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
- name: Test connectivity
run: curl ${API_URL}

- name: Run System Tests
- name: Run Service Tests
run: |
npm ci
npm run test:system
npm run test:service
- name: Stop service in docker
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Refactored the app for testability and added a few additional tweaks.

### FE Service Tests

- Service tests with docker and playwright
- Service tests with docker and [Playwright.io](https://playwright.dev/)

## Backend

Expand All @@ -47,8 +47,8 @@ Refactored the app for testability and added a few additional tweaks.

### BE Service Tests

- Service tests with docker, axios and vitest
- Unit tests with axios, vitest and vitest-mock-extended
- Service tests with docker, [supertest](https://github.com/ladjs/supertest) and [vitest](https://vitest.dev/)
- Unit tests with [supertest](https://github.com/ladjs/supertest), [vitest](https://vitest.dev/) and [vitest-mock-extended](https://github.com/eratio08/vitest-mock-extended)

## Database

Expand Down
6 changes: 3 additions & 3 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Notes App Express Backend",
"main": "dist/index.js",
"scripts": {
"test:system": "npx vitest **/system/*.spec.ts",
"test:service": "npx vitest **/service/*.spec.ts",
"test:unit": "npx vitest -c ./vitest.config.unit.mts",
"test:coverage": "npx vitest **/unit/*.spec.ts --coverage",
"start:local": "npx nodemon",
Expand All @@ -24,7 +24,7 @@
"@types/cors": "2.8.17",
"@types/express": "4.17.21",
"@types/node": "20.10.6",
"@types/supertest": "^6.0.2",
"@types/supertest": "6.0.2",
"@vitest/coverage-istanbul": "1.2.1",
"@vitest/coverage-v8": "1.2.1",
"axios": "1.6.5",
Expand Down
File renamed without changes.

1 comment on commit a55ccd0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

100.00%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.ts100%100%100%
   prisma.ts100%100%100%
src/__mocks__
   prisma.ts100%100%100%

Please sign in to comment.