ci: fix dts tests

This commit is contained in:
Evan You 2023-01-26 23:04:18 +08:00
parent fe76c166f6
commit 0fbc19f2d0
3 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@
"test-unit": "vitest -c vitest.unit.config.ts", "test-unit": "vitest -c vitest.unit.config.ts",
"test-e2e": "node scripts/build.mjs vue -f global -d && vitest -c vitest.e2e.config.ts", "test-e2e": "node scripts/build.mjs vue -f global -d && vitest -c vitest.e2e.config.ts",
"test-dts": "node scripts/build.mjs shared reactivity runtime-core runtime-dom -dt -f esm-bundler && npm run test-dts-only", "test-dts": "node scripts/build.mjs shared reactivity runtime-core runtime-dom -dt -f esm-bundler && npm run test-dts-only",
"test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.mjson", "test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json",
"test-coverage": "vitest -c vitest.unit.config.ts --coverage", "test-coverage": "vitest -c vitest.unit.config.ts --coverage",
"release": "node scripts/release.mjs", "release": "node scripts/release.mjs",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",

View File

@ -1,4 +1,4 @@
import { defineCustomElement, expectType, expectError } from './index' import { defineCustomElement, expectType, expectError, describe } from './index'
describe('inject', () => { describe('inject', () => {
// with object inject // with object inject

View File

@ -11,7 +11,8 @@ import {
toRefs, toRefs,
ToRefs, ToRefs,
shallowReactive, shallowReactive,
readonly readonly,
describe
} from './index' } from './index'
function plainType(arg: number | Ref<number>) { function plainType(arg: number | Ref<number>) {