Files
47dea26a26 docs: typo upate → update (#72251)
## Summary
Change `upate` to `update`

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

Co-authored-by: JJ Kasper <[email protected]>
2024-11-06 11:21:32 -08:00

451 B

turbopack-ecmascript

Adding new parser tests

We use a snapshot-based testing system to ensure that changes to the parser don't break existing code. To add a new test, you need to create a new directory in tests/analyzer/graph with an 'input.js' file inside.

The snapshot tests are done with the testing crate. You can update them by passing the env var UPDATE=1 to the test runner.

UPDATE=1 cargo test -p turbopack-ecmascript