mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
test(shallow): update 'shallow' and 'useShallow' imports to use 'zustand/shallow' (#3157)
This commit is contained in:
parent
3d9ecb1a10
commit
a6143e0f23
@ -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)', () => {
|
||||
|
||||
@ -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', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user