mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Add foundations for 'rojo serve' tests
This commit is contained in:
parent
6747d97d60
commit
f1729163cf
7 changed files with 65 additions and 10 deletions
|
|
@ -13,7 +13,10 @@ pub fn get_rojo_path() -> PathBuf {
|
|||
|
||||
pub fn get_working_dir_path() -> PathBuf {
|
||||
let mut manifest_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
assert!(manifest_dir.pop(), "Manifest directory did not have a parent");
|
||||
assert!(
|
||||
manifest_dir.pop(),
|
||||
"Manifest directory did not have a parent"
|
||||
);
|
||||
manifest_dir
|
||||
}
|
||||
|
||||
|
|
@ -25,4 +28,4 @@ pub fn get_build_tests_path() -> PathBuf {
|
|||
pub fn get_serve_tests_path() -> PathBuf {
|
||||
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
|
||||
manifest_dir.join("serve-tests")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue