Skip to content

Commit

Permalink
Add JSX test
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jan 24, 2018
1 parent b38b860 commit fa91a22
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/__snapshots__/index.test.js.snap
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions test/fixtures/jsx/index.js
@@ -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>
);
}
}

0 comments on commit fa91a22

Please sign in to comment.