Skip to content

Commit 361758c

Browse files
committed
fix(@schematics/angular): remove special characters from jasmine-vitest report filename
This commit removes hyphens, colons, and periods from the ISO date string used in the jasmine-vitest report filename to ensure the resulting filename is more compact and file-system-friendly. (cherry picked from commit a60f8bc)
1 parent 151b695 commit 361758c

File tree

1 file changed

+4
-1
lines changed
  • packages/schematics/angular/refactor/jasmine-vitest

1 file changed

+4
-1
lines changed

packages/schematics/angular/refactor/jasmine-vitest/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ export default function (options: Schema): Rule {
132132

133133
if (options.report) {
134134
const reportContent = reporter.generateReportContent();
135-
tree.create(`jasmine-vitest-${new Date().toISOString()}.md`, reportContent);
135+
tree.create(
136+
`jasmine-vitest-${new Date().toISOString().replaceAll(/[-:.]/g, '')}.md`,
137+
reportContent,
138+
);
136139
}
137140

138141
reporter.printSummary(options.verbose);

0 commit comments

Comments
 (0)