50 Playwright E2E tests across 13 spec files covering all routes and user flows (items CRUD, check-out/in, locations, labels, scanning, search/filter). Uses vitest as runner with playwright-core for browser automation (bun-compatible alternative to @playwright/test). Includes Gherkin .feature files as living documentation, test support infrastructure (IDB seeding, item factories, assertion helpers, layout measurement), and HANDOFF.md covering project state, deployment, and open design decisions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
407 B
TypeScript
18 lines
407 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
$lib: path.resolve('./src/lib'),
|
|
},
|
|
},
|
|
test: {
|
|
include: ['e2e/specs/**/*.spec.ts'],
|
|
testTimeout: 30000,
|
|
hookTimeout: 30000,
|
|
// Run sequentially — tests share browser state per describe block
|
|
pool: 'forks',
|
|
fileParallelism: false,
|
|
},
|
|
});
|