@samitouri / QOS-React-2 / commits / c1c35407ba

[test] Test with non component declaration

Sathya Gunasekaran committed Aug 10, 2023 at 12:02 UTC c1c35407bae66661fa7217f0411b438640e11a85
2 files changed +7 -1
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/reactscript-basic.flow.expect.md
+4
@@ -6,6 +6,8 @@
6 export default component Foo(bar: number) {
7 return <Bar bar={bar} />;
8 }
9 +
10 +function shouldNotCompile() {}
11 ```
12
13 ## Code
@@ -27,5 +29,7 @@ export default function Foo(t7) {
29 return t0;
30 }
31
32 +function shouldNotCompile() {}
33 +
34 ```
35
\ No newline at end of file
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/reactscript-basic.flow.js
+3 -1
@@ -1,4 +1,6 @@
1 // @reactScriptDirective
2 export default component Foo(bar: number) {
3 return <Bar bar={bar} />;
4 -}
\ No newline at end of file
4 +}
5 +
6 +function shouldNotCompile() {}
\ No newline at end of file