Skip to content

Commit

Permalink
improve test glob to exclude output folder (vercel/turborepo#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 authored Jul 30, 2024
1 parent 72f4094 commit ac39709
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 ac39709

Please sign in to comment.