Skip to content

Commit 9f7bbc8

Browse files
authored
fix(web): exclude framework wrappers from coverage (#512)
## summary excludes the Web adapter React, Vue, and Svelte wrapper entry points from coverage collection these files are thin framework-specific `useChat` wrappers that are already validated by build and typecheck, and excluding them avoids Vitest coverage trying to parse the Svelte wrapper as plain TypeScript
1 parent b93ffa7 commit 9f7bbc8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/adapter-web/vitest.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ export default defineProject({
88
provider: "v8",
99
reporter: ["text", "json-summary"],
1010
include: ["src/**/*.ts"],
11-
exclude: ["src/**/*.test.ts", "src/react/**"],
11+
exclude: [
12+
"src/**/*.test.ts",
13+
"src/react/**",
14+
"src/vue/**",
15+
"src/svelte/**",
16+
],
1217
},
1318
},
1419
});

0 commit comments

Comments
 (0)