Skip to content

Commit 23c00b6

Browse files
committed
fix test
1 parent b565eef commit 23c00b6

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

analysis/examples/larger-project/src/Hooks.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ type callback<'input, 'output> = React.callback<'input, 'output>
9191
type testReactContext = React.Context.t<int>
9292

9393
@genType
94-
type testReactRef = React.Ref.t<int>
94+
type testReactRef = React.ref<int>
9595

9696
@genType
9797
type testDomRef = ReactDOM.domRef

tests/analysis_tests/tests-reanalyze/deadcode/expected/deadcode.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
addValueDeclaration +make Hooks.res:63:6 path:+Hooks.RenderPropRequiresConversion
418418
addRecordLabelDeclaration name Hooks.res:1:16 path:+Hooks.vehicle
419419
addRecordLabelDeclaration vehicle Hooks.res:4:12 path:+Hooks.props
420-
addValueReference Hooks.res:5:26 --> React.res:145:0
420+
addValueReference Hooks.res:5:26 --> React.res:134:0
421421
addTypeReference Hooks.res:10:29 --> Hooks.res:1:16
422422
addValueReference Hooks.res:10:29 --> Hooks.res:4:12
423423
addValueReference Hooks.res:10:75 --> Hooks.res:5:7
@@ -1805,7 +1805,7 @@ File References
18051805
DeadExn.resi -->>
18061806
DeadRT.res -->>
18071807
DeadRT.resi -->>
1808-
DeadTest.res -->> React.res, DeadValueTest.resi, DynamicallyLoadedComponent.res, ImmutableArray.resi
1808+
DeadTest.res -->> DeadValueTest.resi, DynamicallyLoadedComponent.res, ImmutableArray.resi, React.res
18091809
DeadTestBlacklist.res -->>
18101810
DeadTestWithInterface.res -->>
18111811
DeadTypeTest.res -->>
@@ -1821,7 +1821,7 @@ File References
18211821
FirstClassModules.res -->>
18221822
FirstClassModulesInterface.res -->>
18231823
FirstClassModulesInterface.resi -->> FirstClassModulesInterface.res
1824-
Hooks.res -->> React.res, ImportHookDefault.res, ImportHooks.res
1824+
Hooks.res -->> ImportHookDefault.res, ImportHooks.res, React.res
18251825
IgnoreInterface.res -->>
18261826
IgnoreInterface.resi -->>
18271827
ImmutableArray.res -->>

tests/analysis_tests/tests-reanalyze/deadcode/rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"package-specs": {
1818
"module": "esmodule",
19-
"in-source": true
19+
"in-source": false
2020
},
21-
"suffix": ".bs.js"
21+
"suffix": ".res.js"
2222
}

tests/analysis_tests/tests-reanalyze/deadcode/src/Hooks.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type r = {x: string}
5353
type testReactContext = React.Context.t<int>
5454

5555
@genType
56-
type testReactRef = React.Ref.t<int>
56+
type testReactRef = React.ref<int>
5757

5858
@genType
5959
type testDomRef = ReactDOM.domRef

tests/analysis_tests/tests-reanalyze/termination/bsconfig.json renamed to tests/analysis_tests/tests-reanalyze/termination/rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"package-specs": {
1616
"module": "esmodule",
17-
"in-source": true
17+
"in-source": false
1818
},
19-
"suffix": ".bs.js"
19+
"suffix": ".res.js"
2020
}

tests/analysis_tests/tests/rescript.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
],
1212
"bsc-flags": ["-w -33-44-8"],
1313
"bs-dependencies": ["@rescript/react"],
14-
"jsx": { "version": 4 }
14+
"jsx": { "version": 4 },
15+
"suffix": ".res.js"
1516
}

0 commit comments

Comments
 (0)