Skip to content

Commit 3a84fa7

Browse files
authored
chore: update vitest to v4 (#1438)
1 parent 0247926 commit 3a84fa7

16 files changed

Lines changed: 873 additions & 799 deletions

File tree

actions/apidiff-go/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@octokit/webhooks-types": "^7.6.1",
2727
"@types/node": "^24.2.1",
2828
"@types/semver": "^7.7.1",
29-
"vitest": "^2.1.9"
29+
"vitest": "^4.0.18"
3030
}
3131
}

actions/changed-modules-go/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"@octokit/webhooks-types": "^7.6.1",
2323
"@types/micromatch": "^4.0.10",
2424
"@types/node": "^24.3.0",
25-
"vitest": "^2.1.9"
25+
"vitest": "^4.0.18"
2626
}
2727
}

actions/codeowners-review-analysis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"@types/node": "^24.3.1",
2222
"nock": "^14.0.10",
2323
"node-fetch": "^2.7.0",
24-
"vitest": "^2.1.9"
24+
"vitest": "^4.0.18"
2525
}
2626
}

actions/codeowners-sanity-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"@types/node-fetch": "^2.6.13",
1818
"nock": "^14.0.10",
1919
"node-fetch": "^2.7.0",
20-
"vitest": "^2.1.9"
20+
"vitest": "^4.0.18"
2121
}
2222
}

actions/get-latest-tag/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"@types/micromatch": "^4.0.10",
2222
"@types/node": "^24.3.0",
2323
"@types/semver": "^7.7.1",
24-
"vitest": "^2.1.9"
24+
"vitest": "^4.0.18"
2525
}
2626
}

actions/gha-workflow-validator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"nock": "^13.5.4",
1717
"node-fetch": "^2.7.0",
1818
"typescript": "^5.4.5",
19-
"vitest": "^2.1.9"
19+
"vitest": "^4.0.18"
2020
},
2121
"dependencies": {
2222
"@actions/core": "^1.10.1",

actions/gha-workflow-validator/src/__tests__/__snapshots__/output.test.ts.snap

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`setSummary > should set summary with multiple files 1`] = `
4-
[MockFunction spy] {
4+
[MockFunction] {
55
"calls": [
66
[
77
[
@@ -102,7 +102,7 @@ exports[`setSummary > should set summary with multiple files 1`] = `
102102
{
103103
"type": "return",
104104
"value": {
105-
"addRaw": [MockFunction spy] {
105+
"addRaw": [MockFunction] {
106106
"calls": [
107107
[
108108
"
@@ -213,7 +213,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
213213
},
214214
],
215215
},
216-
"addSeparator": [MockFunction spy] {
216+
"addSeparator": [MockFunction] {
217217
"calls": [
218218
[],
219219
],
@@ -224,7 +224,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
224224
},
225225
],
226226
},
227-
"addTable": [MockFunction spy] {
227+
"addTable": [MockFunction] {
228228
"calls": [
229229
[
230230
[
@@ -321,14 +321,9 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
321321
],
322322
],
323323
],
324-
"results": [
325-
{
326-
"type": "return",
327-
"value": [Circular],
328-
},
329-
],
324+
"results": [Circular],
330325
},
331-
"write": [MockFunction spy] {
326+
"write": [MockFunction] {
332327
"calls": [
333328
[],
334329
],
@@ -346,7 +341,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
346341
`;
347342
348343
exports[`setSummary > should set summary with no errors 1`] = `
349-
[MockFunction spy] {
344+
[MockFunction] {
350345
"calls": [
351346
[
352347
[
@@ -379,7 +374,7 @@ exports[`setSummary > should set summary with no errors 1`] = `
379374
{
380375
"type": "return",
381376
"value": {
382-
"addRaw": [MockFunction spy] {
377+
"addRaw": [MockFunction] {
383378
"calls": [
384379
[
385380
"
@@ -490,7 +485,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
490485
},
491486
],
492487
},
493-
"addSeparator": [MockFunction spy] {
488+
"addSeparator": [MockFunction] {
494489
"calls": [
495490
[],
496491
],
@@ -501,7 +496,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
501496
},
502497
],
503498
},
504-
"addTable": [MockFunction spy] {
499+
"addTable": [MockFunction] {
505500
"calls": [
506501
[
507502
[
@@ -530,14 +525,9 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
530525
],
531526
],
532527
],
533-
"results": [
534-
{
535-
"type": "return",
536-
"value": [Circular],
537-
},
538-
],
528+
"results": [Circular],
539529
},
540-
"write": [MockFunction spy] {
530+
"write": [MockFunction] {
541531
"calls": [
542532
[],
543533
],
@@ -555,7 +545,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
555545
`;
556546
557547
exports[`setSummary > should set summary with no input 1`] = `
558-
[MockFunction spy] {
548+
[MockFunction] {
559549
"calls": [
560550
[
561551
[
@@ -588,7 +578,7 @@ exports[`setSummary > should set summary with no input 1`] = `
588578
{
589579
"type": "return",
590580
"value": {
591-
"addRaw": [MockFunction spy] {
581+
"addRaw": [MockFunction] {
592582
"calls": [
593583
[
594584
"
@@ -699,7 +689,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
699689
},
700690
],
701691
},
702-
"addSeparator": [MockFunction spy] {
692+
"addSeparator": [MockFunction] {
703693
"calls": [
704694
[],
705695
],
@@ -710,7 +700,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
710700
},
711701
],
712702
},
713-
"addTable": [MockFunction spy] {
703+
"addTable": [MockFunction] {
714704
"calls": [
715705
[
716706
[
@@ -739,14 +729,9 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
739729
],
740730
],
741731
],
742-
"results": [
743-
{
744-
"type": "return",
745-
"value": [Circular],
746-
},
747-
],
732+
"results": [Circular],
748733
},
749-
"write": [MockFunction spy] {
734+
"write": [MockFunction] {
750735
"calls": [
751736
[],
752737
],
@@ -764,7 +749,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
764749
`;
765750
766751
exports[`setSummary > should set summary with single file 1`] = `
767-
[MockFunction spy] {
752+
[MockFunction] {
768753
"calls": [
769754
[
770755
[
@@ -831,7 +816,7 @@ exports[`setSummary > should set summary with single file 1`] = `
831816
{
832817
"type": "return",
833818
"value": {
834-
"addRaw": [MockFunction spy] {
819+
"addRaw": [MockFunction] {
835820
"calls": [
836821
[
837822
"
@@ -942,7 +927,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
942927
},
943928
],
944929
},
945-
"addSeparator": [MockFunction spy] {
930+
"addSeparator": [MockFunction] {
946931
"calls": [
947932
[],
948933
],
@@ -953,7 +938,7 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
953938
},
954939
],
955940
},
956-
"addTable": [MockFunction spy] {
941+
"addTable": [MockFunction] {
957942
"calls": [
958943
[
959944
[
@@ -1016,14 +1001,9 @@ uses: org/action@sha # v1.0.0-node16 ghv-ignore!
10161001
],
10171002
],
10181003
],
1019-
"results": [
1020-
{
1021-
"type": "return",
1022-
"value": [Circular],
1023-
},
1024-
],
1004+
"results": [Circular],
10251005
},
1026-
"write": [MockFunction spy] {
1006+
"write": [MockFunction] {
10271007
"calls": [
10281008
[],
10291009
],

actions/matrix-job-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"@types/node-fetch": "^2.6.13",
1717
"nock": "^14.0.10",
1818
"node-fetch": "^2.7.0",
19-
"vitest": "^2.1.9"
19+
"vitest": "^4.0.18"
2020
}
2121
}

actions/signed-commits/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"node-fetch": "^2.7.0",
2222
"prettier": "^2.8.8",
2323
"typescript": "^5.8.3",
24-
"vitest": "^2.1.9"
24+
"vitest": "^4.0.18"
2525
},
2626
"engines": {
2727
"node": ">= 20"

apps/actions-dependencies-updater/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"@types/node": "^20.14.2",
3131
"@types/semver": "^7.5.8",
3232
"ts-node": "10.9.2",
33-
"vitest": "^2.1.9"
33+
"vitest": "^4.0.18"
3434
}
3535
}

0 commit comments

Comments
 (0)