Skip to content

Commit 6ca444f

Browse files
committed
chore: update snapshots with vitest 1.x
1 parent 0036975 commit 6ca444f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

test/transform.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@ describe("transform (jsdoc)", () => {
345345
"export default {
346346
srcDir: {
347347
$schema: {
348-
title: \\"\\",
349-
description: \\"\\",
348+
title: "",
349+
description: "",
350350
tags: [],
351-
tsType: \\"Array<'src' | 'root'>\\",
352-
markdownType: \\"Array<HumanReadable>\\"
351+
tsType: "Array<'src' | 'root'>",
352+
markdownType: "Array<HumanReadable>"
353353
},
354354
$resolve(val, get) {
355355
return val ?? 'src';
@@ -378,11 +378,11 @@ describe("transform (jsdoc)", () => {
378378
"export default {
379379
srcDir: {
380380
$schema: {
381-
title: \\"\\",
382-
description: \\"\\",
381+
title: "",
382+
description: "",
383383
tags: [],
384-
tsType: \\"Array<'src' | 'root'>\\",
385-
markdownType: \\"Array<HumanReadable>\\"
384+
tsType: "Array<'src' | 'root'>",
385+
markdownType: "Array<HumanReadable>"
386386
},
387387
$resolve(val, get) {
388388
return val ?? 'src';
@@ -411,10 +411,10 @@ describe("transform (jsdoc)", () => {
411411
srcDir: {
412412
$default: 'src',
413413
$schema: {
414-
title: \\"\\",
415-
description: \\"\\",
414+
title: "",
415+
description: "",
416416
tags: [],
417-
tsType: \\"'src' | 'root'\\"
417+
tsType: "'src' | 'root'"
418418
}
419419
},
420420
multiline: {

test/types.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("resolveSchema", () => {
2424
*
2525
* this is test
2626
*
27-
* @default \\"test value\\"
27+
* @default "test value"
2828
*/
2929
foo: string,
3030
},
@@ -98,7 +98,7 @@ describe("resolveSchema", () => {
9898
/** @default [true,123] */
9999
mixed?: Array<boolean|number>,
100100
101-
/** @default [{\\"foo\\":[123]}] */
101+
/** @default [{"foo":[123]}] */
102102
object?: Array<{
103103
[key: string]: any
104104
}>,
@@ -215,7 +215,7 @@ export interface Untyped {
215215
expect(schema).toMatchInlineSnapshot(`
216216
"export interface Untyped {
217217
foo: {
218-
/** @default [\\"first\\",\\"second\\",{\\"third\\":true}] */
218+
/** @default ["first","second",{"third":true}] */
219219
bar: Array<string|{
220220
[key: string]: any
221221
}>,

0 commit comments

Comments
 (0)