Files
lobehub/packages/utils/tests/setup.ts
Arvin Xu 8dedc2d3e1 ♻️ refactor: move utils to separate package (#8889)
* move utils

* move utils

* move utils

* update

* update

* update

* update

* update

* refactor to clean the tests

* fix release workflow

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* try to fix client db migration issue

* fix tests
2025-08-22 14:05:01 +08:00

11 lines
236 B
TypeScript

// only inject in the dom environment
if (
// not node runtime
typeof window !== 'undefined' &&
// not edge runtime
typeof (globalThis as any).EdgeRuntime !== 'string'
) {
// test with canvas
import('vitest-canvas-mock');
}