Skip to content

Commit

Permalink
dummy unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Oct 13, 2024
1 parent 769d8da commit a77cf71
Show file tree
Hide file tree
Showing 5 changed files with 3,407 additions and 524 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy_development_app_engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- tests
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -61,6 +62,12 @@ jobs:
cd booking-app
npm ci
- name: Run Unit Tests
run: |
cd booking-app
npm test
continue-on-error: false

- name: Build
run: |
cd booking-app
Expand Down
9 changes: 9 additions & 0 deletions booking-app/__tests__/dummy.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe("Dummy TypeScript test suite", () => {
test("This test will purposely fail", () => {
expect(true).toBe(false);
});

test("This test will trivially pass", () => {
expect(true).toBe(true);
});
});
4 changes: 4 additions & 0 deletions booking-app/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
};
Loading

0 comments on commit a77cf71

Please sign in to comment.