mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-21 08:17:10 +08:00
fix #14433 #### PR Dependency Tree * **PR #14442** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Level-of-detail thumbnails for large images. * Adaptive pacing for snapping, distribution and other alignment work. * RAF coalescer utility to batch high-frequency updates. * Operation timing utility to measure synchronous work. * **Improvements** * Batch group/ungroup reparenting that preserves element order and selection. * Coalesced panning and drag updates to reduce jitter. * Connector/group indexing for more reliable updates, deletions and sync. * Throttled viewport refresh behavior. * **Documentation** * Docs added for RAF coalescer and measureOperation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
26 lines
631 B
TypeScript
26 lines
631 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
target: 'es2018',
|
|
},
|
|
test: {
|
|
globalSetup: '../../../scripts/vitest-global.js',
|
|
include: ['src/__tests__/**/*.unit.spec.ts'],
|
|
testTimeout: 1000,
|
|
coverage: {
|
|
provider: 'istanbul',
|
|
reporter: ['lcov'],
|
|
reportsDirectory: '../../../.coverage/affine-gfx-pointer',
|
|
},
|
|
onConsoleLog(log, type) {
|
|
if (log.includes('lit.dev/msg/dev-mode')) {
|
|
return false;
|
|
}
|
|
console.warn(`Unexpected ${type} log`, log);
|
|
throw new Error(log);
|
|
},
|
|
environment: 'happy-dom',
|
|
},
|
|
});
|