mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-28 13:39:28 +07:00
* 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
11 lines
236 B
TypeScript
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');
|
|
}
|