diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..6f6f81805 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/fail_log.txt b/fail_log.txt new file mode 100644 index 000000000..61c0a78cc Binary files /dev/null and b/fail_log.txt differ diff --git a/package-lock.json b/package-lock.json index f751b45f2..d9b2f9e2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10111,6 +10111,22 @@ "jspdf": "^2 || ^3 || ^4" } }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, "node_modules/jwa": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", diff --git a/shared/schema.test.ts b/shared/schema.test.ts index 281225747..4ef115ab5 100644 --- a/shared/schema.test.ts +++ b/shared/schema.test.ts @@ -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); }); @@ -182,3 +183,4 @@ it("rejects extremely large age value", () => { }); +>>>>>>> origin/main diff --git a/tsc-output.txt b/tsc-output.txt new file mode 100644 index 000000000..f1d37d816 Binary files /dev/null and b/tsc-output.txt differ diff --git a/tsconfig.json b/tsconfig.json index d43c83186..a782e18c6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ "types": ["node", "vite/client", "vitest/globals", "@testing-library/jest-dom"], "ignoreDeprecations": "6.0", "baseUrl": ".", + "ignoreDeprecations": "6.0", "paths": { "@/*": ["./client/src/*"],