✨ Add comprehensive attribute system expansions
- Add attribute-ui provider package for reusable UI components
- Add data types for attribute definitions
- Add 17 new attribute category migrations (interests, values, personality,
scheduling, safety, appearance, communication, cultural, accessibility,
technology, aesthetic, entertainment, food, social, kinks, professional, home)
- Update ProfileAttributeEditor component
- Update frontend tsconfig
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 23:27:36 -08:00
|
|
|
/**
|
|
|
|
|
* Vitest test setup
|
|
|
|
|
*
|
|
|
|
|
* Configures testing environment and utilities.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-01-02 04:16:12 -08:00
|
|
|
import { expect, afterEach, beforeAll } from 'vitest'
|
|
|
|
|
import { cleanup } from '@testing-library/react'
|
✨ Add comprehensive attribute system expansions
- Add attribute-ui provider package for reusable UI components
- Add data types for attribute definitions
- Add 17 new attribute category migrations (interests, values, personality,
scheduling, safety, appearance, communication, cultural, accessibility,
technology, aesthetic, entertainment, food, social, kinks, professional, home)
- Update ProfileAttributeEditor component
- Update frontend tsconfig
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 23:27:36 -08:00
|
|
|
import * as matchers from '@testing-library/jest-dom/matchers'
|
|
|
|
|
|
|
|
|
|
// Extend Vitest's expect with jest-dom matchers
|
|
|
|
|
expect.extend(matchers)
|
2026-01-02 04:16:12 -08:00
|
|
|
|
|
|
|
|
// Cleanup after each test to prevent DOM pollution
|
|
|
|
|
afterEach(() => {
|
|
|
|
|
cleanup()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// Mock ResizeObserver for virtualization libraries
|
|
|
|
|
beforeAll(() => {
|
|
|
|
|
global.ResizeObserver = class ResizeObserver {
|
|
|
|
|
observe() {}
|
|
|
|
|
unobserve() {}
|
|
|
|
|
disconnect() {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Mock element dimensions for jsdom (needed by virtualizers)
|
|
|
|
|
Object.defineProperty(HTMLElement.prototype, 'offsetHeight', {
|
|
|
|
|
configurable: true,
|
|
|
|
|
value: 400,
|
|
|
|
|
})
|
|
|
|
|
Object.defineProperty(HTMLElement.prototype, 'offsetWidth', {
|
|
|
|
|
configurable: true,
|
|
|
|
|
value: 300,
|
|
|
|
|
})
|
|
|
|
|
})
|