- All 8 home page sections: Hero, Locations slider, WhyParents accordion, Birthday pricing cards, Video, Gallery, Reviews slider, News - UI components: NavLink, BtnPrimary, BtnGradient, BtnDetails, AccordionItem - Layout: sticky Header (NavLink + BtnPrimary), Footer with logo - Figma Code Connect: 5 components published (.figma.tsx + figma.config.json) - Public assets: all Figma images and SVGs exported - Pages: /kvytky, /lokatsii, /blog, /dni-narodzhennia, /grupovi-vidviduvannia - Tests: Vitest unit/api suites, Playwright e2e screenshots - Payload CMS: blocks, collections, seed data updates - Hero negative-margin to extend behind sticky header - Custom Tailwind breakpoints: lg=1440px, xl=1920px - Fix ESLint config: drop FlatCompat, use eslint-config-next flat export - Add tsconfig.tsbuildinfo, test-results/, agentdb.rvf* to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
957 B
TypeScript
34 lines
957 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import { fileURLToPath } from 'url'
|
|
import path from 'path'
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
jsx: 'automatic',
|
|
},
|
|
test: {
|
|
pool: 'forks',
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.ts', 'src/components/**/*.test.tsx', 'tests/components/**/*.test.tsx'],
|
|
setupFiles: ['./vitest.setup.ts', './vitest.setup.dom.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
include: ['src/lib/**', 'src/access/**', 'src/app/api/**', 'src/components/**'],
|
|
exclude: ['node_modules/**', 'src/payload-types.ts', '.next/**'],
|
|
thresholds: {
|
|
lines: 70,
|
|
functions: 80,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@payload-config': path.resolve(__dirname, 'payload.config.ts'),
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
})
|