Skip to content

fix: missing beforeEach vitest imports in 3 test files (#70)#76

Open
michaeldistel wants to merge 1 commit into
Autonomy-Logic:developmentfrom
michaeldistel:fix/issue-70-vitest-missing-imports
Open

fix: missing beforeEach vitest imports in 3 test files (#70)#76
michaeldistel wants to merge 1 commit into
Autonomy-Logic:developmentfrom
michaeldistel:fix/issue-70-vitest-missing-imports

Conversation

@michaeldistel
Copy link
Copy Markdown
Contributor

@michaeldistel michaeldistel commented Mar 6, 2026

Closes #70

Summary

  • Add beforeEach to vitest import in tests/semantic/std-function-registry.test.ts, tests/semantic/type-checker.test.ts, and tests/backend/codegen.test.ts
  • Fixes ReferenceError at runtime caused by beforeEach being used without being imported

Note on extra diff noise

The lint-staged hook runs Prettier automatically on every staged file. Touching any of these files caused Prettier to reformat them: single quotes to double quotes and long lines wrapped to fit print width. These are cosmetic changes only, no logic was altered. The sole intentional change per file is the addition of beforeEach to the vitest import line.

Testing

  • npm test: 51 test files passed, 1414 tests passed, 7 skipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: missing vitest imports break 3 test files at runtime

1 participant