Skip to content

Commit 42fbb6f

Browse files
committed
build(deps-dev): bump the vitest group with 3 updates
- closes #129 Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent ce08ceb commit 42fbb6f

File tree

24 files changed

+512
-198
lines changed

24 files changed

+512
-198
lines changed

__tests__/reporters/notifier.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ class Notifier implements Reporter {
9494
// collect passing and failing tests.
9595
for (const module of modules) {
9696
for (const test of module.children.allTests()) {
97-
tests[test.result().state as keyof typeof tests].push(test)
97+
const { state } = test.result()
98+
if (state === 'failed' || state === 'passed') tests[state].push(test)
9899
}
99100
}
100101

__tests__/reporters/verbose.mts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import colors from '#colors'
88
import type { Colors } from '@flex-development/colors'
99
import { getNames } from '@vitest/runner/utils'
1010
import { ok } from 'devlop'
11-
import type { RunnerTask, RunnerTaskResultPack } from 'vitest'
11+
import type { RunnerTask } from 'vitest'
1212
import type { TestCase, TestModule, TestSuite, Vitest } from 'vitest/node'
1313
import { DefaultReporter, type Reporter } from 'vitest/reporters'
1414

@@ -123,21 +123,6 @@ class VerboseReporter extends DefaultReporter implements Reporter {
123123
return this.colors = colors, this.ctx = ctx, void this
124124
}
125125

126-
/**
127-
* Handle task updates.
128-
*
129-
* @public
130-
* @instance
131-
* @override
132-
*
133-
* @param {RunnerTaskResultPack[]} packs
134-
* List of task result packs
135-
* @return {undefined}
136-
*/
137-
public override onTaskUpdate(packs: RunnerTaskResultPack[]): undefined {
138-
return void packs
139-
}
140-
141126
/**
142127
* Print test `modules` after a test run.
143128
*
@@ -239,7 +224,7 @@ class VerboseReporter extends DefaultReporter implements Reporter {
239224
* The test module to print
240225
* @return {undefined}
241226
*/
242-
protected printTestModule(module: TestModule): undefined {
227+
protected override printTestModule(module: TestModule): undefined {
243228
return void module
244229
}
245230
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"check:format": "dprint check --incremental=false",
115115
"check:lint": "eslint --exit-on-fatal-error --max-warnings 0 .",
116116
"check:spelling": "cspell lint --color --no-progress --relative $@ \"**\"",
117-
"check:types": "tsc -p tsconfig.typecheck.json",
117+
"check:types": "tsc -p tsconfig.json",
118118
"check:types:attw": "yarn pack && attw package.tgz; yarn clean:pack",
119119
"check:types:build": "tsc -p tsconfig.build.json",
120120
"check:upgrades": "yarn upgrade-interactive",
@@ -161,8 +161,8 @@
161161
"@types/node": "24.3.0",
162162
"@types/node-notifier": "8.0.5",
163163
"@vates/toggle-scripts": "1.0.0",
164-
"@vitest/coverage-v8": "3.0.8",
165-
"@vitest/ui": "3.0.8",
164+
"@vitest/coverage-v8": "3.2.4",
165+
"@vitest/ui": "3.2.4",
166166
"cross-env": "10.0.0",
167167
"cspell": "9.2.0",
168168
"devlop": "1.1.0",
@@ -186,7 +186,7 @@
186186
"unified": "11.0.5",
187187
"vfile": "6.0.3",
188188
"vite": "5.4.19",
189-
"vitest": "3.0.8",
189+
"vitest": "3.2.4",
190190
"yaml-eslint-parser": "1.3.0"
191191
},
192192
"resolutions": {
File renamed without changes.

src/__snapshots__/node/colors.snap

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`unit:colors > should be colorizer object 1`] = `
4+
{
5+
"bgBlack": [Function bgBlack],
6+
"bgBlackBright": [Function bgBlackBright],
7+
"bgBlue": [Function bgBlue],
8+
"bgBlueBright": [Function bgBlueBright],
9+
"bgCyan": [Function bgCyan],
10+
"bgCyanBright": [Function bgCyanBright],
11+
"bgGreen": [Function bgGreen],
12+
"bgGreenBright": [Function bgGreenBright],
13+
"bgMagenta": [Function bgMagenta],
14+
"bgMagentaBright": [Function bgMagentaBright],
15+
"bgRed": [Function bgRed],
16+
"bgRedBright": [Function bgRedBright],
17+
"bgWhite": [Function bgWhite],
18+
"bgWhiteBright": [Function bgWhiteBright],
19+
"bgYellow": [Function bgYellow],
20+
"bgYellowBright": [Function bgYellowBright],
21+
"black": [Function black],
22+
"blackBright": [Function blackBright],
23+
"blue": [Function blue],
24+
"blueBright": [Function blueBright],
25+
"bold": [Function bold],
26+
"cyan": [Function cyan],
27+
"cyanBright": [Function cyanBright],
28+
"dim": [Function dim],
29+
"gray": [Function gray],
30+
"green": [Function green],
31+
"greenBright": [Function greenBright],
32+
"hidden": [Function hidden],
33+
"inverse": [Function inverse],
34+
"italic": [Function italic],
35+
"magenta": [Function magenta],
36+
"magentaBright": [Function magentaBright],
37+
"red": [Function red],
38+
"redBright": [Function redBright],
39+
"reset": [Function reset],
40+
"strikethrough": [Function strikethrough],
41+
"underline": [Function underline],
42+
"white": [Function white],
43+
"whiteBright": [Function whiteBright],
44+
"yellow": [Function yellow],
45+
"yellowBright": [Function yellowBright],
46+
}
47+
`;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`e2e:colors > should expose public api 1`] = `
4+
[
5+
"colors",
6+
"createColors",
7+
"default",
8+
"isColorSupported",
9+
"stripAnsi",
10+
]
11+
`;
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)