Skip to content

Commit 1df5702

Browse files
authored
test: add test case for an existing bug in no-unstable-context-value rule (#964)
1 parent 939fd08 commit 1df5702

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-unstable-context-value.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,5 +265,10 @@ ruleTester.run(RULE_NAME, rule, {
265265
},
266266
},
267267
},
268+
/* tsx */ `
269+
const Provider = ({foo, children}: {foo: {}, children: React.ReactNode}) => {
270+
return <Context value={foo}>{children}</Context>;
271+
};
272+
`
268273
],
269274
});

0 commit comments

Comments
 (0)