Add JSX test

This commit is contained in:
Jason Miller 2018-01-24 15:57:22 -05:00
parent b38b8603b7
commit fa91a2284c
2 changed files with 30 additions and 0 deletions

View File

@ -20,6 +20,24 @@ Build output to dist:
295 B: demo.umd.js"
`;
exports[`fixtures jsx 1`] = `
"jsx
dist
jsx.js
jsx.js.map
jsx.m.js
jsx.m.js.map
jsx.umd.js
jsx.umd.js.map
index.js
Build output to dist:
211 B: jsx.js
212 B: jsx.m.js
283 B: jsx.umd.js"
`;
exports[`fixtures ts-demo 1`] = `
"ts-demo
dist

12
test/fixtures/jsx/index.js vendored Normal file
View File

@ -0,0 +1,12 @@
const h = (tag, props, ...children) => ({ tag, props, children });
export default class Foo {
render() {
return (
<div id="app">
<h1>Hello, World!</h1>
<p>A JSX demo.</p>
</div>
);
}
}