Skip to content

Commit

Permalink
test: add type test (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 21, 2023
1 parent 972d558 commit 3c27e42
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Lint
run: pnpm lint

test-examples:
test:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -91,5 +91,8 @@ jobs:
- name: Build module
run: pnpm prepack

- name: Test types
run: pnpm test:types

- name: Test examples
run: pnpm test:examples
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"lint": "eslint --ext .vue,.ts,.js,.mjs .",
"lint:fix": "eslint --ext .vue,.ts,.js,.mjs . --fix",
"test:examples": "pnpm -r test",
"test:types": "vue-tsc --noEmit",
"prepack": "unbuild",
"dev:prepare": "nuxi prepare && unbuild --stub && pnpm -r dev:prepare",
"release": "pnpm test:examples && pnpm build && changelogen --release --push && pnpm publish"
Expand Down Expand Up @@ -61,6 +62,7 @@
"@nuxt/module-builder": "0.5.4",
"@testing-library/vue": "7.0.0",
"@types/estree": "1.0.5",
"@types/jsdom": "^21.1.6",
"@vitejs/plugin-vue": "4.5.0",
"@vitejs/plugin-vue-jsx": "3.1.0",
"@vue/test-utils": "2.4.2",
Expand All @@ -78,7 +80,8 @@
"unimport": "3.5.0",
"vite": "4.5.0",
"vitest": "0.33.0",
"vue-router": "4.2.5"
"vue-router": "4.2.5",
"vue-tsc": "^1.8.22"
},
"peerDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
110 changes: 98 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"moduleResolution": "Bundler",
},
"exclude": [
"**/dist/**"
"**/dist/**",
"examples/*",
"test/fixtures/*"
]
}

0 comments on commit 3c27e42

Please sign in to comment.