From 48280de3977cadf3eb06b0b5db6d5a20e090fd06 Mon Sep 17 00:00:00 2001 From: Filip Lindahl Date: Wed, 14 Feb 2024 21:32:00 +0100 Subject: [PATCH] update test to correctly test override --- __tests__/atomWithLocation_spec.tsx | 40 +++++++++++++++++++---------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/__tests__/atomWithLocation_spec.tsx b/__tests__/atomWithLocation_spec.tsx index 611d7bc..194065b 100644 --- a/__tests__/atomWithLocation_spec.tsx +++ b/__tests__/atomWithLocation_spec.tsx @@ -1,6 +1,6 @@ import { useAtom } from 'jotai'; import React, { StrictMode } from 'react'; -import { render } from '@testing-library/react'; +import { act, render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { atomWithLocation } from '../src/index'; @@ -126,7 +126,10 @@ describe('atomWithLocation', () => { -