Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit a0ac067

Browse files
committed
Revert "refactor: extract default providers mocks"
This reverts commit ef24187.
1 parent d591601 commit a0ac067

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

tests/test-utils/providers-mock.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/test-utils/test-utils.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import '@testing-library/jest-dom/extend-expect'
22
import * as vtl from '@testing-library/vue'
33
import userEvent from '@testing-library/user-event'
44

5-
import defaultProviders from './providers-mock'
5+
import icons from '@/packages/chakra-ui-core/src/lib/internal-icons'
6+
import theme from '@/packages/chakra-ui-core/src/lib/theme'
7+
const defaultProviders = options => ({
8+
$chakraTheme: () => theme,
9+
$chakraColorMode: () => 'light',
10+
$chakraIcons: icons,
11+
...options
12+
})
613

714
const render = (component, ...rest) => {
815
const defaults = {

0 commit comments

Comments
 (0)