Files
next.js/turbopack/crates/turbopack-tests/README.md
hrmny becc655b0e Add 'turbopack/' from commit 'fb033c4917bb1bb98b238f1b4c7a928b66a90887'
git-subtree-dir: turbopack
git-subtree-mainline: 344ddbf093
git-subtree-split: fb033c4917
2024-08-01 16:50:52 +02:00

575 B

turbopack-tests

An extracted create to perform snapshot tests on turbopack.

Testing

It's possible to only run the snapshot tests using nextest's filter expressions:

cargo nextest run -E 'test(snapshot)'

The filter supports any substring, and only test names which contain that substring will run.

Updating Snapshot

If you've made a change that requires many snapshot updates, you can automatically update all outputs using the UPDATE command line env:

UPDATE=1 cargo nextest run -E 'test(snapshot)'