Skip to content

Commit c7088a0

Browse files
chore(deps): upgrade vitest 2.1.8 (#3424)
* chore(deps): upgrade vitest 2.1.8 * chore: use @vitest/coverage-v8 * chore: update snapshot * chore: fix * chore: fix * chore: update snapshot * chore: update snapshot --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1d4762c commit c7088a0

File tree

47 files changed

+705
-704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+705
-704
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129
"@typescript-eslint/experimental-utils": "^5.4.0",
130130
"@typescript-eslint/parser": "^5.4.0",
131131
"@typescript-eslint/typescript-estree": "^6.16.0",
132-
"@vitest/coverage-c8": "^0.28.3",
133-
"@vitest/ui": "^0.24.3",
132+
"@vitest/coverage-v8": "^2.1.8",
133+
"@vitest/ui": "^2.1.8",
134134
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
135135
"@vue/babel-preset-jsx": "^1.2.4",
136136
"@vue/eslint-config-typescript": "^9.1.0",
@@ -188,7 +188,7 @@
188188
"vite-plugin-pwa": "^0.11.11",
189189
"vite-plugin-tdoc": "^2.0.2",
190190
"vite-plugin-vue2": "^2.0.3",
191-
"vitest": "^0.26.3",
191+
"vitest": "^2.1.8",
192192
"vitest-fetch-mock": "^0.2.1",
193193
"vue": "~2.6.14",
194194
"vue-class-component": "^7.2.3",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`AnchorItem > <slot> > test slot 1`] = `"<div id=\\"title\\"> this is title slot </div>"`;
3+
exports[`AnchorItem > <slot> > test slot 1`] = `"<div id="title"> this is title slot </div>"`;
44
5-
exports[`AnchorItem > <slot> > test slot 2`] = `"<div id=\\"default\\"> this is children content </div>"`;
5+
exports[`AnchorItem > <slot> > test slot 2`] = `"<div id="default"> this is children content </div>"`;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`AnchorTarget > <slot> > should render default slot 1`] = `
4-
"<h1 id=\\"test-target\\" class=\\"t-anchor__target\\">this is default slots<svg fill=\\"none\\" viewBox=\\"0 0 24 24\\" width=\\"1em\\" height=\\"1em\\" class=\\"t-icon t-icon-file-copy t-anchor__copy\\">
5-
<path fill=\\"currentColor\\" d=\\"M6 1h9.41L21 6.59V19H6V1zm2 2v14h11V9h-6V3H8zm7 .41V7h3.59L15 3.41zM4 5v16h11v2H2V5h2z\\"></path>
4+
"<h1 id="test-target" class="t-anchor__target">this is default slots<svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-file-copy t-anchor__copy">
5+
<path fill="currentColor" d="M6 1h9.41L21 6.59V19H6V1zm2 2v14h11V9h-6V3H8zm7 .41V7h3.59L15 3.41zM4 5v16h11v2H2V5h2z"></path>
66
</svg></h1>"
77
`;

src/anchor/__tests__/index.test.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,12 @@ describe('Anchor', () => {
144144
},
145145
}).findComponent(Anchor);
146146
const links = wrapper.findAllComponents(AnchorItem);
147+
147148
links.at(0).find('a').trigger('click');
148-
expect(onChange).toBeCalledTimes(2);
149-
expect(onChange).toBeCalledWith('#test-b', '');
149+
expect(onChange).toBeCalledTimes(1);
150+
expect(onChange).toBeCalledWith('#test-a', '');
150151
links.at(1).find('a').trigger('click');
151-
expect(onChange).toBeCalledTimes(3);
152+
expect(onChange).toBeCalledTimes(2);
152153
expect(onChange).toBeCalledWith('#test-b', '#test-a');
153154
});
154155
});

src/avatar/__tests__/__snapshots__/index.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Avatar > :props > :icon 1`] = `<div />`;
44

src/avatar/__tests__/__snapshots__/vitest-avatar.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Avatar Component > props.content works fine 1`] = `
44
<div

src/back-top/__tests__/__snapshots__/vitest-back-top.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`BackTop Component > props.content works fine 1`] = `
44
<button

src/badge/__tests__/__snapshots__/index.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Badge > :props > :color 1`] = `
44
<div

src/breadcrumb/__tests__/__snapshots__/index.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Breadcrumb > <slot> > <separator> 1`] = `
44
<div

0 commit comments

Comments
 (0)