Skip to content

Commit

Permalink
improve test glob to exclude output folder (#8875)
Browse files Browse the repository at this point in the history
### Description

Avoids recompiling too often

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
sokra committed Jul 30, 2024
1 parent 5c11459 commit f39c3f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/turbopack-tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ use turbo_tasks_build::{generate_register, rerun_if_glob};
fn main() {
generate_register();
// The test/snapshot crate need to be rebuilt if any snapshots are added.
rerun_if_glob("tests/execution/*/*/*", "tests/execution");
rerun_if_glob("tests/execution/*/*/*/options.json", "tests/execution");
rerun_if_glob("tests/execution/*/*/*/input", "tests/execution");
rerun_if_glob("tests/execution/*/*/*/issues", "tests/execution");
rerun_if_glob("tests/execution/*/*/__skipped__/*", "tests/execution");
rerun_if_glob("tests/snapshot/*/*", "tests/snapshot");
}

0 comments on commit f39c3f9

Please sign in to comment.