Skip to content

Commit

Permalink
Comment out test.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 18, 2023
1 parent 2bb4842 commit 6383004
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions crates/cli/tests/setup_teardown_test.rs
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
use moon_test_utils::{create_sandbox_with_config, get_cases_fixture_configs};
use moon_utils::is_ci;
use starbase_utils::dirs;
// use moon_test_utils::{create_sandbox_with_config, get_cases_fixture_configs};
// use moon_utils::is_ci;
// use starbase_utils::dirs;

#[test]
fn sets_up_and_tears_down() {
// This is heavy so avoid in local tests for now
if !is_ci() {
return;
}
// #[test]
// fn sets_up_and_tears_down() {
// // This is heavy so avoid in local tests for now
// if !is_ci() {
// return;
// }

// We use a different Node.js version as to not conflict with other tests!
let node_version = "17.1.0";
let home_dir = dirs::home_dir().unwrap();
let moon_dir = home_dir.join(".proto");
let node_dir = moon_dir.join("tools/node").join(node_version);
// // We use a different Node.js version as to not conflict with other tests!
// let node_version = "17.1.0";
// let home_dir = dirs::home_dir().unwrap();
// let moon_dir = home_dir.join(".proto");
// let node_dir = moon_dir.join("tools/node").join(node_version);

assert!(!node_dir.exists());
// assert!(!node_dir.exists());

let (workspace_config, toolchain_config, tasks_config) = get_cases_fixture_configs();
// let (workspace_config, toolchain_config, tasks_config) = get_cases_fixture_configs();

let sandbox = create_sandbox_with_config(
"cases",
Some(workspace_config),
Some(toolchain_config),
Some(tasks_config),
);
// let sandbox = create_sandbox_with_config(
// "cases",
// Some(workspace_config),
// Some(toolchain_config),
// Some(tasks_config),
// );

let setup = sandbox.run_moon(|cmd| {
cmd.arg("setup").env("MOON_NODE_VERSION", node_version);
});
// let setup = sandbox.run_moon(|cmd| {
// cmd.arg("setup").env("MOON_NODE_VERSION", node_version);
// });

setup.success().code(0);
// setup.success().code(0);

assert!(node_dir.exists());
// assert!(node_dir.exists());

let teardown = sandbox.run_moon(|cmd| {
cmd.arg("teardown").env("MOON_NODE_VERSION", node_version);
});
// let teardown = sandbox.run_moon(|cmd| {
// cmd.arg("teardown").env("MOON_NODE_VERSION", node_version);
// });

teardown.success().code(0);
// teardown.success().code(0);

assert!(!node_dir.exists());
}
// assert!(!node_dir.exists());
// }

0 comments on commit 6383004

Please sign in to comment.