[easy] run typechecking on CI (#954)
This commit is contained in:
parent
3f8144ef85
commit
05af9f04ed
1
.github/workflows/lint.yml
vendored
1
.github/workflows/lint.yml
vendored
@ -19,5 +19,6 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
npm run test:other
|
npm run test:other
|
||||||
npm run test:code
|
npm run test:code
|
||||||
|
npm run test:typecheck
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
@ -97,6 +97,7 @@
|
|||||||
"test:app": "react-scripts test --env=jsdom --passWithNoTests",
|
"test:app": "react-scripts test --env=jsdom --passWithNoTests",
|
||||||
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
|
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
|
||||||
"test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
|
"test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
|
||||||
|
"test:typecheck": "tsc",
|
||||||
"test:other": "npm run prettier -- --list-different"
|
"test:other": "npm run prettier -- --list-different"
|
||||||
},
|
},
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
@ -41,6 +41,7 @@ it("clones arrow element", () => {
|
|||||||
|
|
||||||
assertCloneObjects(element, copy);
|
assertCloneObjects(element, copy);
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
expect(copy.__proto__).toEqual({ hello: "world" });
|
expect(copy.__proto__).toEqual({ hello: "world" });
|
||||||
expect(copy.hasOwnProperty("hello")).toBe(false);
|
expect(copy.hasOwnProperty("hello")).toBe(false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user