Skip to content

Commit

Permalink
Feature - Health checks: Add healthcheck for executing node (#541)
Browse files Browse the repository at this point in the history
* Add healthcheck

* Formatting
  • Loading branch information
bryphe authored Aug 1, 2019
1 parent 64c9982 commit 3af281b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/editor/Core/HealthCheck.re
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ let checks = [
"Verify node executable",
(setup: Setup.t) => Sys.file_exists(setup.nodePath),
),
(
"Verify node executable can execute simple script",
(setup: Setup.t) => {
let ret =
Rench.ChildProcess.spawnSync(
setup.nodePath,
[|"-e", "console.log(\"test\")"|],
);
ret.stdout |> String.trim |> String.equal("test");
},
),
(
"Verify rg executable",
(setup: Setup.t) => Sys.file_exists(setup.rgPath),
Expand Down

0 comments on commit 3af281b

Please sign in to comment.