Skip to content

Commit

Permalink
enable production chunking for execution tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Feb 21, 2025
1 parent 7a530c3 commit c8bc0dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions turbopack/crates/turbopack-tests/tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use turbopack::{
ModuleAssetContext,
};
use turbopack_core::{
chunk::ChunkingConfig,
compile_time_defines,
compile_time_info::CompileTimeInfo,
condition::ContextCondition,
Expand Down Expand Up @@ -415,6 +416,10 @@ async fn run_test_operation(prepared_test: ResolvedVc<PreparedTest>) -> Result<V
env,
RuntimeType::Development,
)
.ecmascript_chunking_config(ChunkingConfig {
min_chunk_size: 20_000,
..Default::default()
})
.build();

let jest_entry_source = FileSource::new(jest_entry_path);
Expand Down

0 comments on commit c8bc0dc

Please sign in to comment.