Skip to content

Commit c441561

Browse files
committed
test: add type-checked example to test suite
1 parent 5c58a1f commit c441561

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"build": "pkgroll",
2323
"format": "prettier --write src",
2424
"type-check": "tsc --noEmit",
25-
"test": "pkgroll && vitest --dir test --testTimeout 10000",
25+
"test": "pkgroll && vitest --dir test --testTimeout 30000",
2626
"prepublishOnly": "pkgroll --clean-dist"
2727
},
2828
"publishConfig": {

test/index.spec.ts

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('should pass lint without error in new projects', () => {
5555
'with-nightwatch',
5656
'with-playwright',
5757
'with-vitest',
58+
'type-checked',
5859
]) {
5960
test(projectName, async () => {
6061
const { stdout } = await runLintAgainst(projectName)
@@ -79,6 +80,7 @@ describe('should report error on recommended rule violations in .vue files', ()
7980
'with-nightwatch',
8081
'with-playwright',
8182
'with-vitest',
83+
'type-checked',
8284
]) {
8385
test(`src/App.vue in ${projectName}`, async () => {
8486
const appVuePath = path.join(
@@ -117,6 +119,7 @@ describe('should report error on recommended rule violations in other script fil
117119
'with-nightwatch',
118120
'with-playwright',
119121
'with-vitest',
122+
'type-checked',
120123
]) {
121124
test(`main.ts in ${projectName}`, async () => {
122125
const mainTsPath = path.join(

0 commit comments

Comments
 (0)