AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6
@@ -160,8 +160,10 @@ jobs:
|
||||
run: npm ci
|
||||
working-directory: frontend
|
||||
|
||||
# tsconfig.test.json, not the default: the default leaves the unit tests out
|
||||
# so the Docker build (which has only frontend/) can type-check the app.
|
||||
- name: Type check
|
||||
run: npx vue-tsc --noEmit
|
||||
run: npx vue-tsc --noEmit -p tsconfig.test.json
|
||||
working-directory: frontend
|
||||
|
||||
- name: Unit tests
|
||||
|
||||
@@ -15,5 +15,6 @@
|
||||
"noImplicitReturns": true,
|
||||
"types": []
|
||||
},
|
||||
"include": ["src"]
|
||||
"include": ["src"],
|
||||
"exclude": ["src/**/*.test.ts"]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
// The app's config plus its unit tests. tsconfig.json leaves the tests out because
|
||||
// the production build type-checks in a Docker stage that copies only frontend/,
|
||||
// and grammar.test.ts reads ../core/testdata, which is not there (run 8478).
|
||||
// CI's typecheck lane runs THIS file, so the tests are still type-checked.
|
||||
"extends": "./tsconfig.json",
|
||||
"include": ["src"],
|
||||
"exclude": []
|
||||
}
|
||||
Reference in New Issue
Block a user