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) diff --git a/packages/mobx-react/__tests__/stateless.test.tsx b/packages/mobx-react/__tests__/stateless.test.tsx index 9d4ef934d..6ff32d589 100644 --- a/packages/mobx-react/__tests__/stateless.test.tsx +++ b/packages/mobx-react/__tests__/stateless.test.tsx @@ -13,7 +13,8 @@ StatelessComp.defaultProps = { testProp: "default value for prop testProp" } -describe("stateless component with propTypes", () => { +// skipping because `propTypes` and `defaultProps` are dropped in React 19 +describe.skip("stateless component with propTypes", () => { const StatelessCompObserver: React.FunctionComponent = observer(StatelessComp) test("default property value should be propagated", () => {