Skip to content

Commit

Permalink
test: add type-checked example to test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Oct 14, 2024
1 parent 5c58a1f commit c441561
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "pkgroll",
"format": "prettier --write src",
"type-check": "tsc --noEmit",
"test": "pkgroll && vitest --dir test --testTimeout 10000",
"test": "pkgroll && vitest --dir test --testTimeout 30000",
"prepublishOnly": "pkgroll --clean-dist"
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('should pass lint without error in new projects', () => {
'with-nightwatch',
'with-playwright',
'with-vitest',
'type-checked',
]) {
test(projectName, async () => {
const { stdout } = await runLintAgainst(projectName)
Expand All @@ -79,6 +80,7 @@ describe('should report error on recommended rule violations in .vue files', ()
'with-nightwatch',
'with-playwright',
'with-vitest',
'type-checked',
]) {
test(`src/App.vue in ${projectName}`, async () => {
const appVuePath = path.join(
Expand Down Expand Up @@ -117,6 +119,7 @@ describe('should report error on recommended rule violations in other script fil
'with-nightwatch',
'with-playwright',
'with-vitest',
'type-checked',
]) {
test(`main.ts in ${projectName}`, async () => {
const mainTsPath = path.join(
Expand Down

0 comments on commit c441561

Please sign in to comment.