Skip to content

Commit 8a57a14

Browse files
committed
test: e2e test before building (for coverage) and add type tests
1 parent ff86a4d commit 8a57a14

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ jobs:
4343
- name: 📦 Install dependencies
4444
run: pnpm install --frozen-lockfile
4545

46-
- name: 🛠 Build project
47-
run: pnpm build
48-
4946
- name: 🧪 Test project
5047
run: pnpm test -- --coverage
5148

49+
- name: 💪 Test types
50+
run: pnpm test:types
51+
52+
- name: 🛠 Build project
53+
run: pnpm build
54+
5255
- name: 🟩 Coverage
5356
uses: codecov/codecov-action@v3

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"prepublishOnly": "pnpm lint && pnpm test && pinst --disable",
4949
"release": "release-it",
5050
"test": "vitest run",
51+
"test:types": "tsc --noEmit",
5152
"postinstall": "husky install",
5253
"postpublish": "pinst --enable"
5354
},

src/runtime/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
} from '@ionic/vue-router'
66

77
import { defineNuxtPlugin, useRuntimeConfig } from '#imports'
8+
// @ts-expect-error Virtual module generated by Nuxt
89
import routes from '#build/routes'
910

1011
export default defineNuxtPlugin(nuxtApp => {

0 commit comments

Comments
 (0)