Skip to content

Commit f6ee0b0

Browse files
committed
test: move js tests to appropriate folder
1 parent f7ab557 commit f6ee0b0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { render, screen, fireEvent } from '@testing-library/react';
2-
import { Purge } from '../../src/components/All';
3-
import { handlePurge } from '../../src/utils';
4-
5-
import { useDispatch } from '@wordpress/data';
2+
import { Purge } from '../../../src/components/All';
3+
import { handlePurge } from '../../../src/utils';
64

75
jest.mock( '@wordpress/data', () => ( {
86
useDispatch: jest.fn(),
@@ -12,7 +10,7 @@ jest.mock( '@wordpress/i18n', () => ( {
1210
__: ( text: string ) => text,
1311
} ) );
1412

15-
jest.mock( '../../src/utils', () => ( {
13+
jest.mock( '../../../src/utils', () => ( {
1614
handlePurge: jest.fn(),
1715
} ) );
1816

0 commit comments

Comments
 (0)