Skip to content

Commit

Permalink
feat: fix JIT being disabled by default in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CompeyDev committed Oct 17, 2024
1 parent ee68483 commit f6c39bc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions crates/lune/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ macro_rules! create_tests {
// The rest of the test logic can continue as normal
let full_name = format!("{}/tests/{}.luau", workspace_dir.display(), $value);
let script = read_to_string(&full_name).await?;
let mut lune = Runtime::new().with_args(
ARGS
.clone()
.iter()
.map(ToString::to_string)
.collect::<Vec<_>>()
);
let mut lune = Runtime::new()
.with_jit(true)
.with_args(
ARGS
.clone()
.iter()
.map(ToString::to_string)
.collect::<Vec<_>>()
);
let script_name = full_name
.trim_end_matches(".luau")
.trim_end_matches(".lua")
Expand Down

0 comments on commit f6c39bc

Please sign in to comment.