From 93a3ecd9ccf131d838ed38bb732ad68a473e4a89 Mon Sep 17 00:00:00 2001 From: Jordan Thomson Date: Wed, 11 Dec 2024 09:34:22 +1100 Subject: [PATCH] skipping propTypes and defaultProps forwarding test --- packages/mobx-react/__tests__/inject.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mobx-react/__tests__/inject.test.tsx b/packages/mobx-react/__tests__/inject.test.tsx index c2fdeaf85..6f97ac25e 100644 --- a/packages/mobx-react/__tests__/inject.test.tsx +++ b/packages/mobx-react/__tests__/inject.test.tsx @@ -296,7 +296,8 @@ describe("inject based context", () => { expect(ref.current?.testField).toBe(1) }) - test("propTypes and defaultProps are forwarded", () => { + // skipping because `propTypes` and `defaultProps` are dropped in React 19 + test.skip("propTypes and defaultProps are forwarded", () => { const msg: Array = [] const baseError = console.error console.error = m => msg.push(m)