mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-22 22:32:01 -05:00
test: add assertions to check for unwanted imports in built output (#5123)
This commit is contained in:
@@ -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",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user