Skip to content

up tests to ReScript v11 #905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion analysis/src/Packages.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let makePathsForModule ~projectFilesAndPaths ~dependenciesFilesAndPaths =

let getReScriptVersion () =
(* TODO: Include patch stuff when needed *)
let defaultVersion = (10, 1) in
let defaultVersion = (11, 0) in
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional. We can easily roll back to defaulting to 10.1 if this causes troubles (it shouldn't).

try
let value = Sys.getenv "RESCRIPT_VERSION" in
let version =
Expand Down
31 changes: 17 additions & 14 deletions analysis/tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions analysis/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
},
"private": true,
"devDependencies": {
"@rescript/react": "^0.11.0-rc.3"
"@rescript/react": "0.12.0"
},
"dependencies": {
"rescript": "11.0.0-alpha.1"
"rescript": "11.0.1"
}
}
2 changes: 1 addition & 1 deletion analysis/tests/src/expected/Auto.res.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Hover src/Auto.res 2:13
{"contents": {"kind": "markdown", "value": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.mli%22%2C34%2C0%5D)\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}}
{"contents": {"kind": "markdown", "value": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.resi%22%2C35%2C0%5D)\n\n\n\nReturns a new list with `f` applied to each element of `someList`.\n\n## Examples\n\n```rescript\nlist{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n```\n"}}

102 changes: 52 additions & 50 deletions analysis/tests/src/expected/Completion.res.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ Complete src/CompletionFunctionArguments.res 109:29
posCursor:[109:29] posNoWhite:[109:28] Found expr:[105:3->114:4]
JSX <div:[105:3->105:6] onMouseDown[106:4->106:15]=...[106:35->113:5]> _children:114:2
posCursor:[109:29] posNoWhite:[109:28] Found expr:[106:35->113:5]
posCursor:[109:29] posNoWhite:[109:28] Found expr:[106:16->113:5]
posCursor:[109:29] posNoWhite:[109:28] Found expr:[107:6->109:29]
posCursor:[109:29] posNoWhite:[109:28] Found expr:[108:6->109:29]
posCursor:[109:29] posNoWhite:[109:28] Found expr:[109:9->109:29]
Expand All @@ -395,6 +396,7 @@ Complete src/CompletionFunctionArguments.res 111:27
posCursor:[111:27] posNoWhite:[111:26] Found expr:[105:3->114:4]
JSX <div:[105:3->105:6] onMouseDown[106:4->106:15]=...[106:35->113:5]> _children:114:2
posCursor:[111:27] posNoWhite:[111:26] Found expr:[106:35->113:5]
posCursor:[111:27] posNoWhite:[111:26] Found expr:[106:16->113:5]
posCursor:[111:27] posNoWhite:[111:26] Found expr:[107:6->111:27]
posCursor:[111:27] posNoWhite:[111:26] Found expr:[108:6->111:27]
posCursor:[111:27] posNoWhite:[111:26] Found expr:[111:9->111:27]
Expand Down
Loading