Skip to content

Commit 92b9b2d

Browse files
committed
skipping propTypes and defaultProps forwarding tests
1 parent b9da1d6 commit 92b9b2d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/mobx-react/__tests__/inject.test.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ describe("inject based context", () => {
296296
expect(ref.current?.testField).toBe(1)
297297
})
298298

299-
test("propTypes and defaultProps are forwarded", () => {
299+
// skipping because `propTypes` and `defaultProps` are dropped in React 19
300+
test.skip("propTypes and defaultProps are forwarded", () => {
300301
const msg: Array<string> = []
301302
const baseError = console.error
302303
console.error = m => msg.push(m)

packages/mobx-react/__tests__/stateless.test.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ StatelessComp.defaultProps = {
1313
testProp: "default value for prop testProp"
1414
}
1515

16-
describe("stateless component with propTypes", () => {
16+
// skipping because `propTypes` and `defaultProps` are dropped in React 19
17+
describe.skip("stateless component with propTypes", () => {
1718
const StatelessCompObserver: React.FunctionComponent<any> = observer(StatelessComp)
1819

1920
test("default property value should be propagated", () => {

0 commit comments

Comments
 (0)