mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
- PreviewModal no longer uses motion/react — prevents test failures from AnimatePresence exit animations never completing in test env - Add CSS animations for .ds-modal-backdrop (fade-in) and .ds-modal (scale-in) - Add vitest alias to mock motion/react so AnimatePresence in other components (UpdaterPopup, ExamplesTab) completes synchronously in tests
14 lines
314 B
TypeScript
14 lines
314 B
TypeScript
import { resolve } from 'node:path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'motion/react': resolve(__dirname, 'tests/helpers/motion-mock.tsx'),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.{ts,tsx}'],
|
|
},
|
|
});
|