test: increase coverage and add codecov integration

This commit is contained in:
Justineo
2025-09-20 22:47:33 +08:00
committed by GU Yiling
parent e0cf2a4e7e
commit 373fe19d59
31 changed files with 2813 additions and 169 deletions

View File

@ -1,5 +1,9 @@
type Attrs = Record<string, any>;
export function isBrowser(): boolean {
return typeof window !== "undefined" && typeof document !== "undefined";
}
// Copied from
// https://github.com/vuejs/vue-next/blob/5a7a1b8293822219283d6e267496bec02234b0bc/packages/shared/src/index.ts#L40-L41
const onRE = /^on[^a-z]/;