Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

[easy] run typechecking on CI (#954)

Keyan Zhang05af9f04ed9d
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index a5e3c84f8f..92e731a05a 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -19,5 +19,6 @@ jobs:
npm ci
npm run test:other
npm run test:code
+ npm run test:typecheck
env:
CI: true
diff --git a/package.json b/package.json
index 62030a7449..a02f284cac 100644
--- a/package.json
+++ b/package.json
@@ -97,6 +97,7 @@
"test:app": "react-scripts test --env=jsdom --passWithNoTests",
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
"test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
+ "test:typecheck": "tsc",
"test:other": "npm run prettier -- --list-different"
},
"version": "1.0.0",
diff --git a/src/element/newElement.test.ts b/src/element/newElement.test.ts
index 4e52f3fa3a..a37e6973b3 100644
--- a/src/element/newElement.test.ts
+++ b/src/element/newElement.test.ts
@@ -41,6 +41,7 @@ it("clones arrow element", () => {
assertCloneObjects(element, copy);
+ // @ts-ignore
expect(copy.__proto__).toEqual({ hello: "world" });
expect(copy.hasOwnProperty("hello")).toBe(false);