test(e2e): ensure valid config output format & commitlint success#931
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR strengthens the end-to-end/integration test suite by adding (a) an optional Prettier formatting check for generated config files and (b) a new integration test that exercises commitlint + husky’s commit-msg hook behavior.
Changes:
- Added
TestEnvironment.runPrettierCheckIfInstalled()to conditionally runprettier --checkon specific paths. - Added a formatting assertion helper used across Next.js/NestJS/Vite integration tests to validate generated config output format.
- Added a new “Commitlint Integration Tests” suite that performs a real
git commitafter installing commitlint/husky.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/utils/test-environment.ts | Adds conditional Prettier --check support and a helper to run git commit with a provided message. |
| tests/integration.test.ts | Introduces formatting-check helper usage across integration tests and adds a new commitlint+husky integration test. |
kguzek
force-pushed
the
test/config-format
branch
from
May 13, 2026 11:26
b2e5e80 to
245f921
Compare
commit: |
|
🎉 This PR is included in version 2.4.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
No description provided.