Skip to content

Commit

Permalink
skipping propTypes and defaultProps forwarding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imjordanxd committed Dec 10, 2024
1 parent b9da1d6 commit 92b9b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/mobx-react/__tests__/inject.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> = []
const baseError = console.error
console.error = m => msg.push(m)
Expand Down
3 changes: 2 additions & 1 deletion packages/mobx-react/__tests__/stateless.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> = observer(StatelessComp)

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

0 comments on commit 92b9b2d

Please sign in to comment.