This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ let make = {
23
23
"
24
24
`;
25
25
26
- exports [`externalWithCustomName .react .res .fixme 1`] = ` ""` ;
27
-
28
26
exports [`innerModule .react .res 1`] = `
29
27
"module Bar = {
30
28
@bs .obj
@@ -36,7 +34,7 @@ exports[`innerModule.react.res 1`] = `
36
34
) => {\\" a\\ " : ' a, \\ "b\\ ": ' b } = \\" \\ "
37
35
let make =
38
36
(@warning (\\" -16\\ " ) ~a , @warning (\\" -16\\ " ) ~b , _ ) => {
39
- Js .log (\\" This function should be named \` Test $Bar\`\\ " )
37
+ Js .log (\\" This function should be named \` InnerModule.react $Bar\`\\ " )
40
38
ReactDOMRe .createDOMElementVariadic (\\" div\\ " , [])
41
39
}
42
40
let make = {
@@ -54,7 +52,7 @@ exports[`innerModule.react.res 1`] = `
54
52
55
53
let component =
56
54
(@warning (\\" -16\\ " ) ~a , @warning (\\" -16\\ " ) ~b , _ ) => {
57
- Js .log (\\" This function should be named \` Test $Bar$component\`\\ " )
55
+ Js .log (\\" This function should be named \` InnerModule.react $Bar$component\`\\ " )
58
56
ReactDOMRe .createDOMElementVariadic (\\" div\\ " , [])
59
57
}
60
58
let component = {
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ module Bar = {
2
2
@react.component
3
3
let make = (~a , ~b , _ ) => {
4
4
Js .log (
5
- "This function should be named `Test $Bar`" ,
5
+ "This function should be named `InnerModule.react $Bar`" ,
6
6
)
7
7
<div />
8
8
}
9
9
@react.component
10
10
let component = (~a , ~b , _ ) => {
11
11
Js .log (
12
- "This function should be named `Test $Bar$component`" ,
12
+ "This function should be named `InnerModule.react $Bar$component`" ,
13
13
)
14
14
<div />
15
15
}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ function parseFileToSexp(filename) {
109
109
return parseOcamlFileToSexp ( filename ) ;
110
110
111
111
case "reactJsx" :
112
- return parseOcamlFileToSexp ( filename , true ) ;
112
+ return parseNapkinFileToSexp ( filename , true ) ;
113
113
114
114
default :
115
115
return parseNapkinFileToSexp ( filename , false ) ;
@@ -213,6 +213,14 @@ let makeReproducibleFilename = (txt) => {
213
213
global . runPrinter = ( dirname ) => {
214
214
fs . readdirSync ( dirname ) . forEach ( ( base ) => {
215
215
let filename = path . join ( dirname , base ) ;
216
+
217
+ if ( filename . length > 6 ) {
218
+ let suffix = filename . substring ( filename . length - 6 ) ;
219
+ if ( suffix === ".fixme" ) {
220
+ return ;
221
+ }
222
+ }
223
+
216
224
if ( ! fs . lstatSync ( filename ) . isFile ( ) || base === "render.spec.js" ) {
217
225
return ;
218
226
}
You can’t perform that action at this time.
0 commit comments