From b9da1d652b3b505ef1b335f6f267a1c81f59320f Mon Sep 17 00:00:00 2001 From: Jordan Thomson Date: Wed, 11 Dec 2024 09:31:35 +1100 Subject: [PATCH] skipping legacy context tests --- packages/mobx-react-lite/__tests__/observer.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mobx-react-lite/__tests__/observer.test.tsx b/packages/mobx-react-lite/__tests__/observer.test.tsx index 607e5d21d..f4f0a92b3 100644 --- a/packages/mobx-react-lite/__tests__/observer.test.tsx +++ b/packages/mobx-react-lite/__tests__/observer.test.tsx @@ -49,7 +49,7 @@ function runTestSuite(mode: "observer" | "useObserver") { list: 0 } - const TodoItem = obsComponent(({ todo }: { todo: typeof store.todos[0] }) => { + const TodoItem = obsComponent(({ todo }: { todo: (typeof store.todos)[0] }) => { renderings.item++ return
  • |{todo.title}
  • }, true) @@ -997,7 +997,7 @@ it("dependencies should not become temporarily unobserved", async () => { expect(doubleDisposed).toBeCalledTimes(1) }) -it("Legacy context support", () => { +it.skip("Legacy context support", () => { const contextKey = "key" const contextValue = "value"