Skip to content

Commit 15f2539

Browse files
zombieJclaude
andcommitted
chore: remove delayUtil jest mock from tests
The jest.mock('../src/utils/delayUtil') was removed from multiple test files since it's no longer needed after the delayFrame implementation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0c8b4e5 commit 15f2539

4 files changed

Lines changed: 0 additions & 9 deletions

File tree

tests/context.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import InfoField from './common/InfoField';
66
import { changeValue, matchError, getInput } from './common';
77
import timeout from './common/timeout';
88

9-
jest.mock('../src/utils/delayUtil');
10-
119
describe('Form.Context', () => {
1210
it('validateMessages', async () => {
1311
const { container } = render(

tests/index.test.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import { changeValue, getInput, matchError } from './common';
77
import InfoField, { Input } from './common/InfoField';
88
import timeout, { waitFakeTime } from './common/timeout';
99

10-
11-
jest.mock('../src/utils/delayUtil');
12-
1310
describe('Form.Basic', () => {
1411
describe('create form', () => {
1512
const Content: React.FC = () => (

tests/list.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import InfoField, { Input } from './common/InfoField';
1010
import { changeValue, getInput } from './common';
1111
import timeout from './common/timeout';
1212

13-
14-
jest.mock('../src/utils/delayUtil');
1513
describe('Form.List', () => {
1614
const form = React.createRef<FormInstance>();
1715

tests/validate-warning.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { changeValue, getInput, matchError } from './common';
55
import type { FormInstance, Rule } from '../src/interface';
66
import { render } from '@testing-library/react';
77

8-
9-
jest.mock('../src/utils/delayUtil');
108
describe('Form.WarningValidate', () => {
119
it('required', async () => {
1210
const form = React.createRef<FormInstance>();

0 commit comments

Comments
 (0)