Add Vitest setup to js package with CI integration#860
Open
wibjorn wants to merge 9 commits into
Open
Conversation
- Install vitest and jsdom as dev dependencies in @microsoft/atlas-js - Add vitest.config.ts with jsdom environment for DOM-dependent tests - Update js package test script to run vitest - Add root-level test script to run js workspace tests - Add test step to main CI workflow - Include sample utility tests to verify setup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
- Install @vitest/coverage-v8 for coverage reporting - Configure vitest with v8 coverage provider (text, json-summary, html reporters) - Add test:coverage scripts to js and root package.json - Update CI workflow to run coverage and report summary to GitHub Actions - Update js.instructions.md with unit testing and coverage documentation - Update copilot-instructions.md with test/coverage commands - Add coverage/ to .gitignore Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Move util.test.ts from src/utilities/ to test/utilities/ - Update vitest config to look in test/**/*.test.ts - Update import paths to reference ../../src/ - Update AI instructions to reflect test/ folder convention Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add github-actions reporter conditionally when running in CI - Remove custom PowerShell coverage summary step in favor of native annotations - Test failures now appear as inline annotations on PR diffs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
sahiljohari
reviewed
May 13, 2026
sahiljohari
reviewed
May 13, 2026
bbalentine87
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Output: https://github.com/microsoft/atlas-design/actions/runs/25767534079/job/75683333312
Link: preview
npm run test,npm run test:cov