Skip to content

Commit d442efd

Browse files
committed
test(shallow): update 'shallow' and 'useShallow' imports to use 'zustand/shallow'
1 parent a03acc3 commit d442efd

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/shallow.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { useState } from 'react'
22
import { act, fireEvent, render, screen } from '@testing-library/react'
33
import { beforeEach, describe, expect, it, vi } from 'vitest'
44
import { create } from 'zustand'
5-
import { useShallow } from 'zustand/react/shallow'
5+
import { shallow, useShallow } from 'zustand/shallow'
66
import { createWithEqualityFn } from 'zustand/traditional'
7-
import { shallow } from 'zustand/vanilla/shallow'
87

98
describe('types', () => {
109
it('works with useBoundStore and array selector (#1107)', () => {

tests/vanilla/shallow.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import { shallow } from 'zustand/vanilla/shallow'
2+
import { shallow } from 'zustand/shallow'
33

44
describe('shallow', () => {
55
it('compares primitive values', () => {

0 commit comments

Comments
 (0)