Skip to content

Commit

Permalink
test: @putout/plugin-react: apply-craete-root: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed May 9, 2024
1 parent cbae99d commit ad4369e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {any} from 'react-dom';
import {createRoot} from 'react-dom/client';

{
const root = createRoot(document.getElementById('root'));
root.render(<App/>);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {render, any} from 'react-dom';
render(<App />, document.getElementById('root'));

5 changes: 5 additions & 0 deletions packages/plugin-react/lib/apply-create-root/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ test('react: apply-create-root: transform', (t) => {
t.transform('apply-create-root');
t.end();
});

test('react: apply-create-root: transform: specifiers', (t) => {
t.transform('specifiers');
t.end();
});

0 comments on commit ad4369e

Please sign in to comment.