- Next.js 14+ with App Router and TypeScript - Tailwind CSS and ShadCN UI styling - Zustand state management - Dexie.js for IndexedDB (local-first data) - Auth.js v5 for authentication - BMAD framework integration Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
import { test as base } from '@playwright/test';
|
|
import { UserFactory } from './factories/user-factory';
|
|
|
|
type TestFixtures = {
|
|
userFactory: UserFactory;
|
|
};
|
|
|
|
export const test = base.extend<TestFixtures>({
|
|
userFactory: async ({ }, use) => {
|
|
const factory = new UserFactory();
|
|
await use(factory);
|
|
await factory.cleanup();
|
|
},
|
|
});
|
|
|
|
export { expect } from '@playwright/test';
|