refactor(sdk): colocate vitest tests next to their sources#1194
Open
toiroakr wants to merge 1 commit into
Open
refactor(sdk): colocate vitest tests next to their sources#1194toiroakr wants to merge 1 commit into
toiroakr wants to merge 1 commit into
Conversation
Drop the `src/vitest/__tests__/` directory; the test files live next to the modules they cover. Vitest discovers them via the existing `**/?(*.)+(spec|test).ts` include pattern, so the `**/__tests__/**/*.ts` entry has been removed from `vitest.config.ts`. The nested integration runner moves from `src/vitest/__tests__/integration/` to `src/vitest/integration/`. Pure refactor: no public API or behavior changes.
🦋 Changeset detectedLatest commit: 4c227cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
⚡ pkg.pr.new@tailor-platform/sdk@tailor-platform/create-sdk
|
Code Metrics Report (packages/sdk)
Details | | main (d3d984f) | #1194 (478793a) | +/- |
|--------------------|----------------|-----------------|------|
| Coverage | 61.9% | 61.9% | 0.0% |
| Files | 363 | 363 | 0 |
| Lines | 12651 | 12651 | 0 |
| Covered | 7833 | 7833 | 0 |
| Code to Test Ratio | 1:0.4 | 1:0.4 | 0.0 |
| Code | 82915 | 82915 | 0 |
| Test | 34645 | 34645 | 0 |SDK Configure Bundle Size
Runtime Performance
Type Performance (instantiations)
Reported by octocov |
📖 Docs Consistency Check✅ No inconsistencies found between documentation and implementation. Checked areas:
Analysis:
All documentation remains accurate as it focuses on user-facing testing patterns rather than SDK internal test organization. |
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.
Summary
packages/sdk/src/vitest/__tests__/and place each test file next to the module it covers.**/__tests__/**/*.tsentry fromvitest.config.tssince the standard**/?(*.)+(spec|test).tsinclude pattern already picks up the relocated files.src/vitest/__tests__/integration/tosrc/vitest/integration/and addsrc/vitest/integration/vitest.config.tstoknip.json's ignore list so the dynamically-spawned config is not flagged as unused.