E2E testing plugin for Better Auth — fast user creation and automatic session cookies for Playwright.
- Build tool: tsdown (NOT tsup) —
pnpm build/pnpm dev - ESM-first:
"type": "module",.mjsoutputs - Two entry points:
src/index.ts(Playwright fixtures),src/server.ts(Better Auth plugin) - tsdown
exports: truemanages package.json exports — don't editexportsfield manually
- Strict mode,
verbatimModuleSyntax,moduleResolution: "bundler" - Target: ES2022
- Peer deps:
better-auth(server side),@playwright/test(test side) — both optional - Externals:
better-auth,better-auth/plugins,@playwright/test,zod
better-auth-playwright.mdis the design doc