test: add assertions to check for unwanted imports in built output (#5123)

This commit is contained in:
Alex Yang
2025-10-06 09:32:36 -07:00
committed by GitHub
parent 6b0df7df88
commit e6d82a83fe

View File

@@ -48,5 +48,15 @@ describe("(vite) client build", () => {
!clientContent.includes("createEndpoint"),
"Built output should not contain 'better-call' imports",
);
assert.ok(
!clientContent.includes("async_hooks"),
"Built output should not contain 'async_hooks' imports",
);
assert.ok(
!clientContent.includes("AsyncLocalStorage"),
"Built output should not contain 'AsyncLocalStorage' imports",
);
});
});