Skip to content

Commit

Permalink
[easy] run typechecking on CI (excalidraw#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyz authored Mar 15, 2020
1 parent 3f8144e commit 05af9f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ jobs:
npm ci
npm run test:other
npm run test:code
npm run test:typecheck
env:
CI: true
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/element/newElement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 05af9f0

Please sign in to comment.