Skip to content

Commit

Permalink
Chore: add jsx-transform with alias testing to check correctly import…
Browse files Browse the repository at this point in the history
… from react/jsx-runtime
  • Loading branch information
Shinyaigeek committed Dec 18, 2021
1 parent e05804a commit 4efec78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/integration-tests/test/transpilation.js
Expand Up @@ -192,6 +192,7 @@ describe('transpilation', function () {
);

let file = await outputFS.readFile(b.getBundles()[0].filePath, 'utf8');
assert(/\Wreact\/jsx-runtime\W/.test(file));
assert(file.includes('_jsxRuntime.jsx("div"'));
});

Expand Down

0 comments on commit 4efec78

Please sign in to comment.