Skip to content

Commit ef9ba90

Browse files
committed
Add test
1 parent 41bc3d6 commit ef9ba90

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import { webViewRender } from "react-native-react-bridge/lib/web";
3+
import Comp from "./Component";
4+
import "./example.css";
5+
6+
const text = "foo `bar`";
7+
console.log(text);
8+
9+
const App = () => {
10+
return <Comp />;
11+
};
12+
13+
export default webViewRender(App);

src/plugin/__snapshots__/metro.spec.js.snap

Lines changed: 20 additions & 0 deletions
Large diffs are not rendered by default.

src/plugin/metro.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ describe("bundle", () => {
6666
expect(res).toMatchSnapshot();
6767
});
6868

69+
it("with backticks", async () => {
70+
const filename = "app-export-default-with-backticks.jsx";
71+
const filePath = resolvePath(filename);
72+
const res = await bundle(filePath);
73+
expect(res).toMatchSnapshot();
74+
});
75+
6976
it("default (preact)", async () => {
7077
const filename = "app-export-default-preact.jsx";
7178
const filePath = resolvePath(filename);

0 commit comments

Comments
 (0)