Skip to content

Init test infra and first unit test#52

Open
tyulpan wants to merge 1 commit into
luau-lang:mainfrom
tyulpan:init-tests-for-frontend
Open

Init test infra and first unit test#52
tyulpan wants to merge 1 commit into
luau-lang:mainfrom
tyulpan:init-tests-for-frontend

Conversation

@tyulpan
Copy link
Copy Markdown
Contributor

@tyulpan tyulpan commented Mar 16, 2026

Vitest is probably the best choice for testing the frontend of this project.
For e2e testing, we could use playwright. But that’s for the future.

Initialized the standard setup for this.

It looks like the source files in ./src/lib/utils/ are the only ones with pure functions and no dependencies (Browser/WASM/Svelte/CodeMirror).
I propose starting the coverage there. output.ts is the best fit for the first one.

I propose the following test structure:

  1. unit tests are co-located with the source files they test.
  2. a tests/ directory will be created in the project root, containing:
  • integration/: for integration tests
  • e2e/: for end-to-end tests

Related to #19.

@aatxe aatxe requested a review from Nicell March 25, 2026 17:29
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.

1 participant