Skip to content

Commit 09eb6ab

Browse files
committed
test: update snapshot
1 parent 085befa commit 09eb6ab

4 files changed

Lines changed: 5 additions & 49 deletions

File tree

test/coverage-test/test/__snapshots__/pre-transpiled-v8.snapshot.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@
2323
"column": 12
2424
}
2525
},
26-
"2": {
27-
"start": {
28-
"line": 3,
29-
"column": 0
30-
},
31-
"end": {
32-
"line": 3,
33-
"column": 16
34-
}
35-
},
3626
"3": {
3727
"start": {
3828
"line": 4,
@@ -53,16 +43,6 @@
5343
"column": 3
5444
}
5545
},
56-
"6": {
57-
"start": {
58-
"line": 7,
59-
"column": 0
60-
},
61-
"end": {
62-
"line": 7,
63-
"column": 12
64-
}
65-
},
6646
"7": {
6747
"start": {
6848
"line": 8,
@@ -83,16 +63,6 @@
8363
"column": 18
8464
}
8565
},
86-
"10": {
87-
"start": {
88-
"line": 11,
89-
"column": 0
90-
},
91-
"end": {
92-
"line": 11,
93-
"column": 16
94-
}
95-
},
9666
"11": {
9767
"start": {
9868
"line": 12,
@@ -123,16 +93,6 @@
12393
"column": 26
12494
}
12595
},
126-
"15": {
127-
"start": {
128-
"line": 16,
129-
"column": 0
130-
},
131-
"end": {
132-
"line": 16,
133-
"column": 14
134-
}
135-
},
13696
"16": {
13797
"start": {
13898
"line": 17,
@@ -177,17 +137,13 @@
177137
"s": {
178138
"0": 1,
179139
"1": 1,
180-
"2": 0,
181140
"3": 0,
182141
"4": 0,
183-
"6": 1,
184142
"7": 1,
185143
"9": 1,
186-
"10": 0,
187144
"11": 0,
188145
"12": 0,
189146
"14": 1,
190-
"15": 1,
191147
"16": 1,
192148
"17": 1,
193149
"18": 1,

test/coverage-test/test/file-outside-vite.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('does not crash when file outside Vite is loaded (#5639)', async () => {
1414
if (isV8Provider()) {
1515
expect(fileCoverage).toMatchInlineSnapshot(`
1616
{
17-
"branches": "0/0 (100%)",
17+
"branches": "1/1 (100%)",
1818
"functions": "0/1 (0%)",
1919
"lines": "1/1 (100%)",
2020
"statements": "1/1 (100%)",

test/coverage-test/test/vue.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ test('coverage results matches snapshot', async () => {
3636
else if (isV8Provider()) {
3737
expect(coverageMap).toMatchInlineSnapshot(`
3838
{
39-
"branches": "5/6 (83.33%)",
40-
"functions": "3/5 (60%)",
39+
"branches": "7/8 (87.5%)",
40+
"functions": "4/6 (66.66%)",
4141
"lines": "35/43 (81.39%)",
4242
"statements": "35/43 (81.39%)",
4343
}

test/coverage-test/test/web-worker.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ test('web worker coverage is correct', async () => {
3434
"<process-cwd>/fixtures/src/worker-wrapper.ts": {
3535
"branches": "3/3 (100%)",
3636
"functions": "2/4 (50%)",
37-
"lines": "18/22 (81.81%)",
38-
"statements": "18/22 (81.81%)",
37+
"lines": "17/21 (80.95%)",
38+
"statements": "17/21 (80.95%)",
3939
},
4040
"<process-cwd>/fixtures/src/worker.ts": {
4141
"branches": "2/4 (50%)",

0 commit comments

Comments
 (0)