Skip to content

Commit 6c2ffc4

Browse files
committed
fix test flacky-ness
1 parent 2044d82 commit 6c2ffc4

2 files changed

Lines changed: 7 additions & 6 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ function stabilize(content: string): string {
2222
.replaceAll(
2323
/Generated:\*\* \d{4}-\d{2}-\d{2}/gu,
2424
'Generated:** <REDACTED>',
25-
);
25+
)
26+
.replaceAll(/Generated: \d{4}-\d{2}-\d{2}/gu, 'Generated: <REDACTED>');
2627
}
2728

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

0 commit comments

Comments
 (0)