Skip to content

Commit bbb3a23

Browse files
committed
fix flaky tests
1 parent f493f96 commit bbb3a23

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

test/generator/__snapshots__/snapshot.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`documentation plugin: snapshot > snapshot: full representative schema o
55
//////////////////////////////////////////////////////////////////////////////////////////////
66
// DO NOT MODIFY THIS FILE //
77
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
8-
// Source: schema.zmodel · Generated: 2026-03-08 //
8+
// Source: schema.zmodel · Generated: <REDACTED> //
99
//////////////////////////////////////////////////////////////////////////////////////////////
1010
\`\`\`
1111
@@ -73,7 +73,7 @@ exports[`documentation plugin: snapshot > snapshot: full representative schema o
7373
//////////////////////////////////////////////////////////////////////////////////////////////
7474
// DO NOT MODIFY THIS FILE //
7575
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
76-
// Source: schema.zmodel · Generated: 2026-03-08 //
76+
// Source: schema.zmodel · Generated: <REDACTED> //
7777
//////////////////////////////////////////////////////////////////////////////////////////////
7878
\`\`\`
7979
@@ -125,7 +125,7 @@ exports[`documentation plugin: snapshot > snapshot: full representative schema o
125125
//////////////////////////////////////////////////////////////////////////////////////////////
126126
// DO NOT MODIFY THIS FILE //
127127
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
128-
// Source: schema.zmodel · Generated: 2026-03-08 //
128+
// Source: schema.zmodel · Generated: <REDACTED> //
129129
//////////////////////////////////////////////////////////////////////////////////////////////
130130
\`\`\`
131131
@@ -218,7 +218,7 @@ exports[`documentation plugin: snapshot > snapshot: full representative schema o
218218
//////////////////////////////////////////////////////////////////////////////////////////////
219219
// DO NOT MODIFY THIS FILE //
220220
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
221-
// Source: schema.zmodel · Generated: 2026-03-08 //
221+
// Source: schema.zmodel · Generated: <REDACTED> //
222222
//////////////////////////////////////////////////////////////////////////////////////////////
223223
\`\`\`
224224
@@ -349,7 +349,7 @@ exports[`documentation plugin: snapshot > snapshot: full representative schema o
349349
//////////////////////////////////////////////////////////////////////////////////////////////
350350
// DO NOT MODIFY THIS FILE //
351351
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
352-
// Source: schema.zmodel · Generated: 2026-03-08 //
352+
// Source: schema.zmodel · Generated: <REDACTED> //
353353
//////////////////////////////////////////////////////////////////////////////////////////////
354354
\`\`\`
355355

test/generator/snapshot.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ function stabilize(content: string): string {
1919
/\*\*Generated\*\* \| \d{4}-\d{2}-\d{2}/gu,
2020
'**Generated** | <REDACTED>',
2121
)
22-
.replaceAll(
23-
/Generated:\*\* \d{4}-\d{2}-\d{2}/gu,
24-
'Generated:** <REDACTED>',
25-
);
22+
.replaceAll(/Generated:\*\* \d{4}-\d{2}-\d{2}/gu, 'Generated:** <REDACTED>')
23+
.replaceAll(/Generated: \d{4}-\d{2}-\d{2}/gu, 'Generated: <REDACTED>');
2624
}
2725

2826
describe('documentation plugin: snapshot', () => {

0 commit comments

Comments
 (0)