Skip to content

Commit bb405d1

Browse files
wip(tests): test JSX
1 parent 5442edc commit bb405d1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/basic.test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,27 @@ const { defaultFilesFactory, createPage } = require('./testsTools.js');
801801
});
802802

803803

804+
test('should handle JSX', async () => {
805+
806+
const { page, output } = await createPage({
807+
files: {
808+
...files,
809+
'/component.vue': `
810+
<script>
811+
export default {
812+
render() {
813+
return <div>123</div>;
814+
},
815+
}
816+
</script>
817+
`,
818+
}
819+
});
820+
821+
await expect(page.$eval('#app', el => el.innerHTML)).resolves.toMatch('123');
822+
});
823+
824+
804825
});
805826

806827

0 commit comments

Comments
 (0)