Skip to content

Commit 81c9156

Browse files
authored
Update Vitest to v1 (directus#20694)
1 parent 541db82 commit 81c9156

File tree

88 files changed

+655
-573
lines changed

Some content is hidden

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

88 files changed

+655
-573
lines changed

api/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@
209209
"@types/uuid-validate": "0.0.1",
210210
"@types/wellknown": "0.5.4",
211211
"@types/ws": "8.5.8",
212-
"@vitest/coverage-v8": "0.34.6",
212+
"@vitest/coverage-v8": "1.0.4",
213213
"copyfiles": "2.4.1",
214214
"form-data": "4.0.0",
215215
"knex-mock-client": "2.0.0",
216216
"supertest": "6.3.3",
217217
"typescript": "5.3.2",
218-
"vitest": "0.34.6"
218+
"vitest": "1.0.4"
219219
},
220220
"optionalDependencies": {
221221
"@keyv/redis": "2.5.8",

api/src/operations/mail/index.test.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import knex from 'knex';
22
import { MockClient } from 'knex-mock-client';
3-
import type { SpyInstance } from 'vitest';
4-
import { beforeEach, describe, expect, test, vi } from 'vitest';
3+
import { beforeEach, describe, expect, test, vi, type MockInstance } from 'vitest';
54
import { MailService } from '../../services/mail/index.js';
65
import * as mdUtil from '../../utils/md.js';
76
import type { Options } from './index.js';
87
import config from './index.js';
98

109
describe('Operations / Mail', () => {
1110
let mockOperationContext: any;
12-
let mailServiceSendSpy: SpyInstance;
13-
let mdSpy: SpyInstance;
11+
let mailServiceSendSpy: MockInstance;
12+
let mdSpy: MockInstance;
1413

1514
beforeEach(async () => {
1615
mockOperationContext = {

api/src/services/files.test.ts

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
import { InvalidPayloadError } from '@directus/errors';
12
import type { Knex } from 'knex';
23
import knex from 'knex';
34
import { createTracker, MockClient, Tracker } from 'knex-mock-client';
4-
import type { MockedFunction, SpyInstance } from 'vitest';
5-
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
6-
import { InvalidPayloadError } from '@directus/errors';
5+
import {
6+
afterEach,
7+
beforeAll,
8+
beforeEach,
9+
describe,
10+
expect,
11+
it,
12+
vi,
13+
type MockedFunction,
14+
type MockInstance,
15+
} from 'vitest';
716
import { FilesService, ItemsService } from './index.js';
817

918
describe('Integration Tests', () => {
@@ -23,7 +32,7 @@ describe('Integration Tests', () => {
2332
describe('Services / Files', () => {
2433
describe('createOne', () => {
2534
let service: FilesService;
26-
let superCreateOne: SpyInstance;
35+
let superCreateOne: MockInstance;
2736

2837
beforeEach(() => {
2938
service = new FilesService({

api/src/services/roles.test.ts

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
import { ForbiddenError, UnprocessableContentError } from '@directus/errors';
12
import type { SchemaOverview } from '@directus/types';
23
import type { Knex } from 'knex';
34
import knex from 'knex';
45
import { createTracker, MockClient, Tracker } from 'knex-mock-client';
5-
import type { MockedFunction, SpyInstance } from 'vitest';
6-
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
7-
import { ForbiddenError, UnprocessableContentError } from '@directus/errors';
6+
import {
7+
afterEach,
8+
beforeAll,
9+
beforeEach,
10+
describe,
11+
expect,
12+
it,
13+
vi,
14+
type MockedFunction,
15+
type MockInstance,
16+
} from 'vitest';
817

918
import { ItemsService, PermissionsService, PresetsService, RolesService, UsersService } from './index.js';
1019

@@ -66,7 +75,7 @@ describe('Integration Tests', () => {
6675
describe('Services / RolesService', () => {
6776
describe('updateOne', () => {
6877
let service: RolesService;
69-
let superUpdateOne: SpyInstance;
78+
let superUpdateOne: MockInstance;
7079
const adminRoleId = 'cbfd1e77-b883-4090-93e4-5bcbfbd48aba';
7180
const userId1 = '07a5fee0-c168-49e2-8e33-4bae280e0c48';
7281
const userId2 = 'abedf9a4-6956-4a9c-8904-c1aa08a68173';
@@ -766,8 +775,8 @@ describe('Integration Tests', () => {
766775

767776
describe('Services / Roles', () => {
768777
let service: RolesService;
769-
let checkForOtherAdminRolesSpy: SpyInstance;
770-
let checkForOtherAdminUsersSpy: SpyInstance;
778+
let checkForOtherAdminRolesSpy: MockInstance;
779+
let checkForOtherAdminUsersSpy: MockInstance;
771780

772781
beforeEach(() => {
773782
service = new RolesService({

api/src/services/users.test.ts

+21-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
import type { SchemaOverview } from '@directus/types';
2-
import type { Knex } from 'knex';
3-
import knex from 'knex';
4-
import { createTracker, MockClient, Tracker } from 'knex-mock-client';
5-
import type { MockedFunction, SpyInstance } from 'vitest';
6-
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
71
import { ForbiddenError, InvalidPayloadError, RecordNotUniqueError } from '@directus/errors';
2+
import type { SchemaOverview } from '@directus/types';
3+
import knex, { type Knex } from 'knex';
4+
import { MockClient, Tracker, createTracker } from 'knex-mock-client';
5+
import {
6+
afterEach,
7+
beforeAll,
8+
beforeEach,
9+
describe,
10+
expect,
11+
it,
12+
vi,
13+
type MockInstance,
14+
type MockedFunction,
15+
} from 'vitest';
816
import { ItemsService, MailService, UsersService } from './index.js';
917

1018
vi.mock('../../src/database/index', () => ({
@@ -77,12 +85,12 @@ describe('Integration Tests', () => {
7785
describe('Services / Users', () => {
7886
let service: UsersService;
7987
let mailService: MailService;
80-
let superCreateManySpy: SpyInstance;
81-
let superUpdateManySpy: SpyInstance;
82-
let checkUniqueEmailsSpy: SpyInstance;
83-
let checkPasswordPolicySpy: SpyInstance;
84-
let checkRemainingAdminExistenceSpy: SpyInstance;
85-
let checkRemainingActiveAdminSpy: SpyInstance;
88+
let superCreateManySpy: MockInstance;
89+
let superUpdateManySpy: MockInstance;
90+
let checkUniqueEmailsSpy: MockInstance;
91+
let checkPasswordPolicySpy: MockInstance;
92+
let checkRemainingAdminExistenceSpy: MockInstance;
93+
let checkRemainingActiveAdminSpy: MockInstance;
8694

8795
beforeEach(() => {
8896
service = new UsersService({
@@ -712,7 +720,7 @@ describe('Integration Tests', () => {
712720
await expect(promise).resolves.not.toThrow();
713721

714722
expect(superUpdateManySpy.mock.lastCall![0]).toEqual([1]);
715-
expect(superUpdateManySpy.mock.lastCall![1]).toContain({ role: 'invite-role' });
723+
expect(superUpdateManySpy.mock.lastCall![1]).toEqual({ role: 'invite-role' });
716724
});
717725
});
718726
});

api/src/services/webhooks.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { Knex } from 'knex';
22
import knex from 'knex';
33
import { createTracker, MockClient, Tracker } from 'knex-mock-client';
4-
import type { SpyInstance } from 'vitest';
5-
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
4+
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi, type MockInstance } from 'vitest';
65
import { getMessenger } from '../messenger.js';
76
import { WebhooksService } from './index.js';
87

@@ -33,7 +32,7 @@ describe('Integration Tests', () => {
3332

3433
describe('Services / Webhooks', () => {
3534
let service: WebhooksService;
36-
let messengerPublishSpy: SpyInstance;
35+
let messengerPublishSpy: MockInstance;
3736

3837
beforeEach(() => {
3938
service = new WebhooksService({

api/src/utils/get-cache-key.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Request } from 'express';
2-
import type { SpyInstance } from 'vitest';
3-
import { afterEach, beforeAll, describe, expect, test, vi } from 'vitest';
2+
import { afterEach, beforeAll, describe, expect, test, vi, type MockInstance } from 'vitest';
43
import { getCacheKey } from './get-cache-key.js';
54
import * as getGraphqlQueryUtil from './get-graphql-query-and-variables.js';
65

@@ -63,7 +62,7 @@ afterEach(() => {
6362

6463
describe('get cache key', () => {
6564
describe('isGraphQl', () => {
66-
let getGraphqlQuerySpy: SpyInstance;
65+
let getGraphqlQuerySpy: MockInstance;
6766

6867
beforeAll(() => {
6968
getGraphqlQuerySpy = vi.spyOn(getGraphqlQueryUtil, 'getGraphqlQueryAndVariables');

api/src/utils/stall.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import type { SpyInstance } from 'vitest';
2-
import { afterAll, beforeAll, expect, test, vi } from 'vitest';
1+
import { afterAll, beforeAll, expect, test, vi, type MockInstance } from 'vitest';
32
import { stall } from './stall.js';
43

5-
let performanceNowSpy: SpyInstance;
4+
let performanceNowSpy: MockInstance;
65

76
beforeAll(() => {
87
vi.useFakeTimers();

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"tinymce": "6.6.0",
136136
"typescript": "5.3.2",
137137
"vite": "4.3.7",
138-
"vitest": "0.34.6",
138+
"vitest": "1.0.4",
139139
"vue": "3.3.9",
140140
"vue-i18n": "9.5.0",
141141
"vue-router": "4.2.5",
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-8dd7c482=\\"\\" class=\\"v-avatar\\">Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-8dd7c482="" class="v-avatar">Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-a39517a7=\\"\\" class=\\"v-badge\\"><span data-v-a39517a7=\\"\\" class=\\"badge\\"><span data-v-a39517a7=\\"\\"></span></span>Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-a39517a7="" class="v-badge"><span data-v-a39517a7="" class="badge"><span data-v-a39517a7=""></span></span>Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<span data-v-273d8978=\\"\\" class=\\"v-breadcrumb\\"><span data-v-273d8978=\\"\\" class=\\"section\\"><!--v-if--><router-link-stub data-v-273d8978=\\"\\" to=\\"hi\\" class=\\"section-link\\"></router-link-stub></span><span data-v-273d8978=\\"\\" class=\\"section\\"><v-icon-stub data-v-273d8978=\\"\\" name=\\"chevron_right\\" small=\\"\\"></v-icon-stub><router-link-stub data-v-273d8978=\\"\\" to=\\"wow\\" class=\\"section-link\\"></router-link-stub></span><span data-v-273d8978=\\"\\" class=\\"section disabled\\"><v-icon-stub data-v-273d8978=\\"\\" name=\\"chevron_right\\" small=\\"\\"></v-icon-stub><span data-v-273d8978=\\"\\" class=\\"section-link\\"><!--v-if--> Disabled</span></span></span>"`;
3+
exports[`Mount component 1`] = `"<span data-v-273d8978="" class="v-breadcrumb"><span data-v-273d8978="" class="section"><!--v-if--><router-link-stub data-v-273d8978="" to="hi" class="section-link"></router-link-stub></span><span data-v-273d8978="" class="section"><v-icon-stub data-v-273d8978="" name="chevron_right" small=""></v-icon-stub><router-link-stub data-v-273d8978="" to="wow" class="section-link"></router-link-stub></span><span data-v-273d8978="" class="section disabled"><v-icon-stub data-v-273d8978="" name="chevron_right" small=""></v-icon-stub><span data-v-273d8978="" class="section-link"><!--v-if--> Disabled</span></span></span>"`;

app/src/components/__snapshots__/v-button.test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Mount component 1`] = `
4-
"<div data-v-28d526fe=\\"\\" class=\\"v-button\\"><button data-v-28d526fe=\\"\\" class=\\"button align-center normal\\" type=\\"button\\"><span data-v-28d526fe=\\"\\" class=\\"content\\"></span>
5-
<div data-v-28d526fe=\\"\\" class=\\"spinner\\">
4+
"<div data-v-28d526fe="" class="v-button"><button data-v-28d526fe="" class="button align-center normal" type="button"><span data-v-28d526fe="" class="content"></span>
5+
<div data-v-28d526fe="" class="spinner">
66
<!--v-if-->
77
</div>
88
</button></div>"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-b9233e5b=\\"\\" class=\\"v-card-actions\\">Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-b9233e5b="" class="v-card-actions">Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-f6658148=\\"\\" class=\\"v-card-subtitle\\">Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-f6658148="" class="v-card-subtitle">Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-de36d604=\\"\\" class=\\"v-card-text\\">Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-de36d604="" class="v-card-text">Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-0768f50f=\\"\\" class=\\"v-card-title type-label\\">Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-0768f50f="" class="v-card-title type-label">Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<div data-v-12731031=\\"\\" class=\\"v-card\\">Slot Content</div>"`;
3+
exports[`Mount component 1`] = `"<div data-v-12731031="" class="v-card">Slot Content</div>"`;
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Mount component 1`] = `
4-
"<button data-v-61c33115=\\"\\" class=\\"v-checkbox\\" type=\\"button\\" role=\\"checkbox\\" aria-pressed=\\"false\\">
4+
"<button data-v-61c33115="" class="v-checkbox" type="button" role="checkbox" aria-pressed="false">
55
<!--v-if-->
6-
<v-icon-stub data-v-61c33115=\\"\\" class=\\"checkbox\\" name=\\"indeterminate_check_box\\" disabled=\\"false\\"></v-icon-stub><span data-v-61c33115=\\"\\" class=\\"label type-text\\"><div>Hi</div></span>
6+
<v-icon-stub data-v-61c33115="" class="checkbox" name="indeterminate_check_box" disabled="false"></v-icon-stub><span data-v-61c33115="" class="label type-text"><div>Hi</div></span>
77
<!--v-if-->
88
</button>"
99
`;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<span data-v-0ab7ac28=\\"\\" class=\\"v-chip label\\"><span data-v-0ab7ac28=\\"\\" class=\\"chip-content\\"><!--v-if--></span></span>"`;
3+
exports[`Mount component 1`] = `"<span data-v-0ab7ac28="" class="v-chip label"><span data-v-0ab7ac28="" class="chip-content"><!--v-if--></span></span>"`;
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[`Mount component 1`] = `
4-
"<div data-v-51167fde=\\"\\" class=\\"v-divider inlineTitle\\"><span data-v-51167fde=\\"\\" class=\\"wrapper\\"><span data-v-51167fde=\\"\\" class=\\"type-text\\">Default slot</span></span>
5-
<hr data-v-51167fde=\\"\\" role=\\"separator\\" aria-orientation=\\"horizontal\\">
4+
"<div data-v-51167fde="" class="v-divider inlineTitle"><span data-v-51167fde="" class="wrapper"><span data-v-51167fde="" class="type-text">Default slot</span></span>
5+
<hr data-v-51167fde="" role="separator" aria-orientation="horizontal">
66
</div>"
77
`;

app/src/components/__snapshots__/v-fancy-select.test.ts.snap

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Mount component 1`] = `
4-
"<div data-v-167e9f7d=\\"\\" class=\\"v-fancy-select\\">
5-
<transition-group-stub data-v-167e9f7d=\\"\\" tag=\\"div\\" name=\\"option\\" appear=\\"false\\" persisted=\\"false\\" css=\\"true\\">
6-
<div data-v-167e9f7d=\\"\\" class=\\"v-fancy-select-option\\" style=\\"--index: 0;\\">
7-
<div data-v-167e9f7d=\\"\\" class=\\"icon\\">
8-
<v-icon-stub data-v-167e9f7d=\\"\\" name=\\"person\\"></v-icon-stub>
4+
"<div data-v-167e9f7d="" class="v-fancy-select">
5+
<transition-group-stub data-v-167e9f7d="" tag="div" name="option" appear="false" persisted="false" css="true">
6+
<div data-v-167e9f7d="" class="v-fancy-select-option" style="--index: 0;">
7+
<div data-v-167e9f7d="" class="icon">
8+
<v-icon-stub data-v-167e9f7d="" name="person"></v-icon-stub>
99
</div>
10-
<div data-v-167e9f7d=\\"\\" class=\\"content\\">
11-
<div data-v-167e9f7d=\\"\\" class=\\"text\\">Person</div>
12-
<div data-v-167e9f7d=\\"\\" class=\\"description\\"></div>
10+
<div data-v-167e9f7d="" class="content">
11+
<div data-v-167e9f7d="" class="text">Person</div>
12+
<div data-v-167e9f7d="" class="description"></div>
1313
</div>
1414
<!--v-if-->
1515
</div>
16-
<div data-v-167e9f7d=\\"\\" class=\\"v-fancy-select-option\\" style=\\"--index: 1;\\">
17-
<div data-v-167e9f7d=\\"\\" class=\\"icon\\">
18-
<v-icon-stub data-v-167e9f7d=\\"\\" name=\\"directions_car\\"></v-icon-stub>
16+
<div data-v-167e9f7d="" class="v-fancy-select-option" style="--index: 1;">
17+
<div data-v-167e9f7d="" class="icon">
18+
<v-icon-stub data-v-167e9f7d="" name="directions_car"></v-icon-stub>
1919
</div>
20-
<div data-v-167e9f7d=\\"\\" class=\\"content\\">
21-
<div data-v-167e9f7d=\\"\\" class=\\"text\\">Car</div>
22-
<div data-v-167e9f7d=\\"\\" class=\\"description\\"></div>
20+
<div data-v-167e9f7d="" class="content">
21+
<div data-v-167e9f7d="" class="text">Car</div>
22+
<div data-v-167e9f7d="" class="description"></div>
2323
</div>
2424
<!--v-if-->
2525
</div>
26-
<v-divider-stub data-v-167e9f7d=\\"\\"></v-divider-stub>
27-
<div data-v-167e9f7d=\\"\\" class=\\"v-fancy-select-option\\" style=\\"--index: 3;\\">
28-
<div data-v-167e9f7d=\\"\\" class=\\"icon\\">
29-
<v-icon-stub data-v-167e9f7d=\\"\\" name=\\"home\\"></v-icon-stub>
26+
<v-divider-stub data-v-167e9f7d=""></v-divider-stub>
27+
<div data-v-167e9f7d="" class="v-fancy-select-option" style="--index: 3;">
28+
<div data-v-167e9f7d="" class="icon">
29+
<v-icon-stub data-v-167e9f7d="" name="home"></v-icon-stub>
3030
</div>
31-
<div data-v-167e9f7d=\\"\\" class=\\"content\\">
32-
<div data-v-167e9f7d=\\"\\" class=\\"text\\">Home</div>
33-
<div data-v-167e9f7d=\\"\\" class=\\"description\\">A home is a nice place</div>
31+
<div data-v-167e9f7d="" class="content">
32+
<div data-v-167e9f7d="" class="text">Home</div>
33+
<div data-v-167e9f7d="" class="description">A home is a nice place</div>
3434
</div>
3535
<!--v-if-->
3636
</div>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Mount component 1`] = `"<span data-v-0a28d51c=\\"\\" class=\\"v-highlight\\">Th<mark data-v-0a28d51c=\\"\\" class=\\"highlight\\">is</mark> <mark data-v-0a28d51c=\\"\\" class=\\"highlight\\">is</mark> a nice <mark data-v-0a28d51c=\\"\\" class=\\"highlight\\">text</mark></span>"`;
3+
exports[`Mount component 1`] = `"<span data-v-0a28d51c="" class="v-highlight">Th<mark data-v-0a28d51c="" class="highlight">is</mark> <mark data-v-0a28d51c="" class="highlight">is</mark> a nice <mark data-v-0a28d51c="" class="highlight">text</mark></span>"`;
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[`Mount component 1`] = `
4-
"<div data-v-a90644d4=\\"\\" class=\\"icon\\">
5-
<v-icon-stub data-v-a90644d4=\\"\\" name=\\"insert_drive_file\\"></v-icon-stub><span data-v-a90644d4=\\"\\" class=\\"label\\">png</span>
4+
"<div data-v-a90644d4="" class="icon">
5+
<v-icon-stub data-v-a90644d4="" name="insert_drive_file"></v-icon-stub><span data-v-a90644d4="" class="label">png</span>
66
</div>"
77
`;
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Mount component 1`] = `
4-
"<div data-v-30215bfa=\\"\\" class=\\"v-info info\\">
4+
"<div data-v-30215bfa="" class="v-info info">
55
<!--v-if-->
6-
<h2 data-v-30215bfa=\\"\\" class=\\"title type-title\\">This is an info</h2>
7-
<p data-v-30215bfa=\\"\\" class=\\"content\\">content</p>
6+
<h2 data-v-30215bfa="" class="title type-title">This is an info</h2>
7+
<p data-v-30215bfa="" class="content">content</p>
88
</div>"
99
`;

app/src/components/__snapshots__/v-input.test.ts.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Mount component 1`] = `
4-
"<div data-v-418390f4=\\"\\" class=\\"v-input full-width\\">
4+
"<div data-v-418390f4="" class="v-input full-width">
55
<!--v-if-->
6-
<div data-v-418390f4=\\"\\" class=\\"input\\">
6+
<div data-v-418390f4="" class="input">
77
<!--v-if-->
8-
<!--v-if--><input data-v-418390f4=\\"\\" autocomplete=\\"off\\" type=\\"text\\" step=\\"1\\">
8+
<!--v-if--><input data-v-418390f4="" autocomplete="off" type="text" step="1">
99
<!--v-if-->
1010
<!--v-if-->
1111
<!--v-if-->

0 commit comments

Comments
 (0)