chore: fix typo (#2108)
This commit is contained in:
parent
b2e71850f8
commit
55b3681bba
@ -9,7 +9,7 @@ import 'jsdom-worker';
|
|||||||
import { vi } from 'vitest';
|
import { vi } from 'vitest';
|
||||||
import '../packages/core/client/src/i18n';
|
import '../packages/core/client/src/i18n';
|
||||||
|
|
||||||
// 解决 ypeError: window.matchMedia is not a function
|
// 解决 TypeError: window.matchMedia is not a function
|
||||||
// 参见: https://github.com/vitest-dev/vitest/issues/821#issuecomment-1046954558
|
// 参见: https://github.com/vitest-dev/vitest/issues/821#issuecomment-1046954558
|
||||||
Object.defineProperty(window, 'matchMedia', {
|
Object.defineProperty(window, 'matchMedia', {
|
||||||
writable: true,
|
writable: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user