Skip to content

Commit

Permalink
[Tests] add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-startsev committed Mar 10, 2023
1 parent fe93797 commit 1375bd1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/lib/rules/no-deprecated.js
Expand Up @@ -119,6 +119,17 @@ ruleTester.run('no-deprecated', rule, {
let { default: defaultReactExport, ...allReactExports } = React;
`,
},
// React < 18
{
code: `
import { render, hydrate } from 'react-dom';
import { renderToNodeStream } from 'react-dom/server';
ReactDOM.render(element, container);
ReactDOM.unmountComponentAtNode(container);
ReactDOMServer.renderToNodeStream(element);
`,
settings: { react: { version: '17.999.999' } },
},
// React 18 API
{
code: `
Expand Down

0 comments on commit 1375bd1

Please sign in to comment.