Skip to content

Commit 23fa44d

Browse files
Test package with tsc
Validate the @ts-expect-error directives in e2e.spec.ts
1 parent b4f1a5e commit 23fa44d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- run: npm run lint
3636
- run: npm run build
3737
- run: npm run test
38-
- run: npx testpack-cli --keep={@babel/*,ts-jest,typescript} .babelrc tsconfig*.json src/e2e.spec.ts
38+
- run: npx testpack-cli --test-script=test-package --keep={@babel/*,ts-jest,typescript} .babelrc tsconfig*.json src/e2e.spec.ts
3939

4040
- name: Upload test coverage report to Codecov
4141
uses: codecov/codecov-action@v1

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"prepublishOnly": "publish-please guard",
3636
"publish-please": "publish-please",
3737
"publish-please-prereqs": "npm run lint && npm run test && npm run build",
38-
"test": "jest --coverage"
38+
"test": "jest --coverage",
39+
"test-package": "tsc -b ./tsconfig.lint.json && jest --coverage"
3940
},
4041
"devDependencies": {
4142
"@babel/cli": "^7.13.10",

0 commit comments

Comments
 (0)