test(shallow): update 'shallow' and 'useShallow' imports to use 'zustand/shallow' (#3157)

This commit is contained in:
Wonsuk Choi 2025-06-19 18:44:01 +09:00 committed by GitHub
parent 3d9ecb1a10
commit a6143e0f23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -2,9 +2,8 @@ import { useState } from 'react'
import { act, fireEvent, render, screen } from '@testing-library/react'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { create } from 'zustand'
import { useShallow } from 'zustand/react/shallow'
import { shallow, useShallow } from 'zustand/shallow'
import { createWithEqualityFn } from 'zustand/traditional'
import { shallow } from 'zustand/vanilla/shallow'
describe('types', () => {
it('works with useBoundStore and array selector (#1107)', () => {

View File

@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import { shallow } from 'zustand/vanilla/shallow'
import { shallow } from 'zustand/shallow'
describe('shallow', () => {
it('compares primitive values', () => {