Skip to content

Commit 332f72e

Browse files
committed
dev: mock React ACT environment for Vitest testing setup
1 parent f96d682 commit 332f72e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-components/vitest.setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { afterEach, expect, vi } from 'vitest';
33
import { createSerializer } from '@emotion/jest';
44
import { cleanup } from '@testing-library/react';
55

6+
// @ts-expect-error: Mock React ACT environment for Vitest
7+
global.IS_REACT_ACT_ENVIRONMENT = true;
8+
69
expect.addSnapshotSerializer(createSerializer({
710
includeStyles: true,
811
}));

0 commit comments

Comments
 (0)