44 createRandomVertex ,
55 createRandomVertexForRdf ,
66 DbState ,
7- renderHookWithRecoilRoot ,
7+ renderHookWithJotai ,
88} from "@/utils/testing" ;
99import { useAddToGraph } from "./useAddToGraph" ;
1010import { act } from "react" ;
@@ -39,7 +39,7 @@ test("should add one node", async () => {
3939 Promise . resolve ( toNodeMap ( [ vertex ] ) )
4040 ) ;
4141
42- const { result } = renderHookWithRecoilRoot ( ( ) => {
42+ const { result } = renderHookWithJotai ( ( ) => {
4343 const callback = useAddToGraph ( ) ;
4444 const vertices = useAtomValue ( nodesAtom ) ;
4545 const edges = useAtomValue ( edgesAtom ) ;
@@ -65,7 +65,7 @@ test("should materialize fragment vertices", async () => {
6565 Promise . resolve ( toNodeMap ( [ clonedVertex ] ) )
6666 ) ;
6767
68- const { result } = renderHookWithRecoilRoot ( ( ) => {
68+ const { result } = renderHookWithJotai ( ( ) => {
6969 const callback = useAddToGraph ( ) ;
7070 const vertices = useAtomValue ( nodesAtom ) ;
7171 const edges = useAtomValue ( edgesAtom ) ;
@@ -90,7 +90,7 @@ test("should add one edge", async () => {
9090 Promise . resolve ( toNodeMap ( [ node1 , node2 ] ) )
9191 ) ;
9292
93- const { result } = renderHookWithRecoilRoot (
93+ const { result } = renderHookWithJotai (
9494 ( ) => {
9595 const callback = useAddToGraph ( ) ;
9696 const vertices = useAtomValue ( nodesAtom ) ;
@@ -118,7 +118,7 @@ test("should add multiple nodes and edges", async () => {
118118 Promise . resolve ( randomEntities . nodes )
119119 ) ;
120120
121- const { result } = renderHookWithRecoilRoot ( ( ) => {
121+ const { result } = renderHookWithJotai ( ( ) => {
122122 const callback = useAddToGraph ( ) ;
123123 const vertices = useAtomValue ( nodesAtom ) ;
124124 const edges = useAtomValue ( edgesAtom ) ;
@@ -153,7 +153,7 @@ test("should update schema when adding a node", async () => {
153153 Promise . resolve ( toNodeMap ( [ vertex ] ) )
154154 ) ;
155155
156- const { result } = renderHookWithRecoilRoot (
156+ const { result } = renderHookWithJotai (
157157 ( ) => {
158158 const callback = useAddToGraph ( ) ;
159159 const vertices = useAtomValue ( nodesAtom ) ;
@@ -186,7 +186,7 @@ test("should update schema when adding a node with no label", async () => {
186186 Promise . resolve ( toNodeMap ( [ vertex ] ) )
187187 ) ;
188188
189- const { result } = renderHookWithRecoilRoot (
189+ const { result } = renderHookWithJotai (
190190 ( ) => {
191191 const callback = useAddToGraph ( ) ;
192192 const vertices = useAtomValue ( nodesAtom ) ;
@@ -221,7 +221,7 @@ test("should update schema when adding an edge", async () => {
221221 Promise . resolve ( toNodeMap ( [ node1 , node2 ] ) )
222222 ) ;
223223
224- const { result } = renderHookWithRecoilRoot (
224+ const { result } = renderHookWithJotai (
225225 ( ) => {
226226 const callback = useAddToGraph ( ) ;
227227 const vertices = useAtomValue ( nodesAtom ) ;
@@ -259,7 +259,7 @@ test("should add missing attributes to the schema when adding a node", async ()
259259 Promise . resolve ( toNodeMap ( [ vertex ] ) )
260260 ) ;
261261
262- const { result } = renderHookWithRecoilRoot (
262+ const { result } = renderHookWithJotai (
263263 ( ) => {
264264 const callback = useAddToGraph ( ) ;
265265 const vertices = useAtomValue ( nodesAtom ) ;
@@ -301,7 +301,7 @@ test("should add missing attributes to the schema when adding an edge", async ()
301301 Promise . resolve ( toNodeMap ( [ node1 , node2 ] ) )
302302 ) ;
303303
304- const { result } = renderHookWithRecoilRoot (
304+ const { result } = renderHookWithJotai (
305305 ( ) => {
306306 const callback = useAddToGraph ( ) ;
307307 const vertices = useAtomValue ( nodesAtom ) ;
@@ -331,7 +331,7 @@ test("should update graph storage when adding a node", async () => {
331331 Promise . resolve ( toNodeMap ( [ vertex ] ) )
332332 ) ;
333333
334- const { result } = renderHookWithRecoilRoot (
334+ const { result } = renderHookWithJotai (
335335 ( ) => {
336336 const callback = useAddToGraph ( ) ;
337337 const graph = useAtomValue ( activeGraphSessionAtom ) ;
@@ -365,7 +365,7 @@ test("should update graph storage when adding an edge", async () => {
365365 Promise . resolve ( toNodeMap ( [ node1 , node2 ] ) )
366366 ) ;
367367
368- const { result } = renderHookWithRecoilRoot (
368+ const { result } = renderHookWithJotai (
369369 ( ) => {
370370 const callback = useAddToGraph ( ) ;
371371 const graph = useAtomValue ( activeGraphSessionAtom ) ;
@@ -398,7 +398,7 @@ test("should ignore blank nodes when updating graph storage", async () => {
398398 Promise . resolve ( toNodeMap ( [ vertex , blankNode ] ) )
399399 ) ;
400400
401- const { result } = renderHookWithRecoilRoot (
401+ const { result } = renderHookWithJotai (
402402 ( ) => {
403403 const callback = useAddToGraph ( ) ;
404404 const graph = useAtomValue ( activeGraphSessionAtom ) ;
0 commit comments