Skip to content

Conversation

leeyi45
Copy link
Contributor

@leeyi45 leeyi45 commented Aug 24, 2025

Migrate to Vitest

Following the modules repo and frontend, this PR migrates the repository to Vitest. I've tried to minimize changes where possible since Vitest was designed as a drop in for Jest, but unlike Jest Vitest requires calls to toMatchInlineSnapshot to be directly from expect.

Relocation of Enums

The Chapter, Variant, ErrorType and ErrorSeverity enums needed to be relocated to other files to allow Vitest to actually work. I suspect it has something to do with the circular imports that aren't just elided during runtime.

I'm not sure if they should be re-exported through the types.ts file though.

RichDom2185 and others added 30 commits July 21, 2025 18:03
# Conflicts:
#	package.json
#	src/parser/__tests__/disallowed-syntax.test.ts
#	src/repl/utils.ts
#	src/utils/operators.ts
#	tsconfig.json
#	yarn.lock
@leeyi45
Copy link
Contributor Author

leeyi45 commented Sep 1, 2025

Vitest is failing in the CI, this is a known issue: vitest-dev/vitest#6511

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.

2 participants