Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npx eslint .
- run: npx tsc --noEmit
Binary file added fail_log.txt
Binary file not shown.
16 changes: 16 additions & 0 deletions package-lock.json

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

12 changes: 7 additions & 5 deletions shared/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,17 @@ describe("insertAssessmentSchema", () => {

expect(result.success).toBe(false);
if (!result.success) {
<<<<<<< HEAD

=======
expect(result.error.issues[0]?.message).toBe("Number must be greater than or equal to 1");
>>>>>>> origin/main
}
});
});
it("rejects whitespace-only patient name", () => {
const result = insertAssessmentSchema.safeParse({
...validAssessment,
patientName: " ",
});

<<<<<<< HEAD
=======
expect(result.success).toBe(false);
});

Expand Down Expand Up @@ -182,3 +183,4 @@ it("rejects extremely large age value", () => {
});


>>>>>>> origin/main
Binary file added tsc-output.txt
Binary file not shown.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"jsx": "preserve",
"esModuleInterop": true,
"skipLibCheck": true,
"ignoreDeprecations": "6.0",

Check failure on line 15 in tsconfig.json

View workflow job for this annotation

GitHub Actions / build

Invalid value for '--ignoreDeprecations'.
"allowImportingTsExtensions": true,
"moduleResolution": "bundler",

"types": ["node", "vite/client", "vitest/globals", "@testing-library/jest-dom"],
"ignoreDeprecations": "6.0",

Check failure on line 20 in tsconfig.json

View workflow job for this annotation

GitHub Actions / build

Invalid value for '--ignoreDeprecations'.
"baseUrl": ".",
"ignoreDeprecations": "6.0",

Check failure on line 22 in tsconfig.json

View workflow job for this annotation

GitHub Actions / build

Invalid value for '--ignoreDeprecations'.

"paths": {
"@/*": ["./client/src/*"],
Expand Down
Loading