Skip to content

Commit 56d86f6

Browse files
committed
chore(repo): use .mts for shared Vitest config; update alias test script/docs
- Rename .config/vitest.config.ts -> .config/vitest.config.mts per review - Update packages/alias test script to reference .mts - Update CONTRIBUTING to mention .mts config
1 parent febf50c commit 56d86f6

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Any code change should be submitted as a pull request. Our guidelines for Pull R
3030

3131
Some packages use Vitest for tests. When converting or running tests locally inside a package directory (e.g. `packages/alias`):
3232

33-
- Tests import the package under test via `~package`. A shared config at `.config/vitest.config.ts` provides a runtime alias that resolves `~package` to the current working directory.
33+
- Tests import the package under test via `~package`. A shared config at `.config/vitest.config.mts` provides a runtime alias that resolves `~package` to the current working directory.
3434
- Snapshots are written alongside each test under a local `.snapshots` directory.
3535

3636
Example (from a package directory):

packages/alias/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"prerelease": "pnpm build",
3333
"pretest": "pnpm build",
3434
"release": "pnpm --workspace-root package:release $(pwd)",
35-
"test": "vitest --config ../../.config/vitest.config.ts run"
35+
"test": "vitest --config ../../.config/vitest.config.mts run"
3636
},
3737
"files": [
3838
"dist",

0 commit comments

Comments
 (0)