Skip to content

Commit 0b7c1d1

Browse files
committed
chore(vitest): bump version to 0.1.5
- Update tdd-guard dependency to ^1.0.1 - Use exported DEFAULT_DATA_DIR constant instead of accessing via Config
1 parent 1744a2e commit 0b7c1d1

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

package-lock.json

Lines changed: 24 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reporters/vitest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdd-guard-vitest",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Vitest reporter for TDD Guard",
55
"author": "Nizar Selander",
66
"license": "MIT",
@@ -22,7 +22,7 @@
2222
"typecheck": "tsc --noEmit"
2323
},
2424
"dependencies": {
25-
"tdd-guard": "^0.8.1"
25+
"tdd-guard": "^1.0.1"
2626
},
2727
"peerDependencies": {
2828
"vitest": ">=3.2.4"

reporters/vitest/src/VitestReporter.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
FileStorage,
77
Storage,
88
Config,
9+
DEFAULT_DATA_DIR,
910
isFailingTest,
1011
isPassingTest,
1112
TestResult,
@@ -71,10 +72,7 @@ describe('VitestReporter', () => {
7172
// Verify the storage is configured with the correct path
7273
const fileStorage = reporter['storage'] as FileStorage
7374
const config = fileStorage['config'] as Config
74-
const expectedDataDir = join(
75-
rootPath,
76-
...Config.DEFAULT_DATA_DIR.split('/')
77-
)
75+
const expectedDataDir = join(rootPath, ...DEFAULT_DATA_DIR.split('/'))
7876
expect(config.dataDir).toBe(expectedDataDir)
7977
})
8078

0 commit comments

Comments
 (0)