diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index 791839b..e2e36cf 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -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 diff --git a/test/fixtures/jsx/index.js b/test/fixtures/jsx/index.js new file mode 100644 index 0000000..c3ce90c --- /dev/null +++ b/test/fixtures/jsx/index.js @@ -0,0 +1,12 @@ +const h = (tag, props, ...children) => ({ tag, props, children }); + +export default class Foo { + render() { + return ( +
+

Hello, World!

+

A JSX demo.

+
+ ); + } +}