Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit e84640a

Browse files
committed
remove .fixme option and add previously failing test + snapshot
1 parent dd2f680 commit e84640a

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

tests/printer/reactJsx/__snapshots__/render.spec.js.snap

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,29 @@ let make = {
1515
"
1616
`;
1717
18+
exports[`externalWithCustomName.res 1`] = `
19+
"module Foo = {
20+
@bs.obj
21+
external componentProps: (
22+
~a: int,
23+
~b: string,
24+
~key: string=?,
25+
unit,
26+
) => {\\"a\\": int, \\"b\\": string} = \\"\\"
27+
@bs.module(\\"Foo\\")
28+
external component: React.componentLike<
29+
{\\"a\\": int, \\"b\\": string},
30+
React.element,
31+
> = \\"component\\"
32+
}
33+
34+
let t = React.createElement(
35+
Foo.component,
36+
Foo.componentProps(~a=1, ~b={\\"1\\"}, ()),
37+
)
38+
"
39+
`;
40+
1841
exports[`innerModule.res 1`] = `
1942
"module Bar = {
2043
@bs.obj

tests/runner.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,6 @@ global.runPrinter = (dirname, ppx = "none") => {
206206
fs.readdirSync(dirname).forEach((base) => {
207207
let filename = path.join(dirname, base);
208208

209-
if (filename.length > 6) {
210-
let suffix = filename.substring(filename.length - 6);
211-
if (suffix === ".fixme") {
212-
return;
213-
}
214-
}
215-
216209
if (!fs.lstatSync(filename).isFile() || base === "render.spec.js") {
217210
return;
218211
}

0 commit comments

Comments
 (0)