Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure fresh environment for each test case in formatter tests
This commit updates `formatter_test.go` to address an issue where each test case was not receiving a fresh `formatEnvironment`. Previously, a single `formatEnvironment` instance was reused across multiple test cases, leading to potential dependencies on prior tests' states, such as indentation levels, that could result in unintended test failures.
- Loading branch information