Add tests for Scaffolder

Signed-off-by: solimant <solimant@users.noreply.github.com>
This commit is contained in:
solimant
2025-05-13 01:29:23 +00:00
parent a9a521d7ce
commit e92e481fed
3 changed files with 1339 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Add tests for Scaffolder
File diff suppressed because it is too large Load Diff
@@ -18,6 +18,7 @@ import { resolveSafeChildPath } from '@backstage/backend-plugin-api';
import fs from 'fs/promises';
import path from 'path';
import { z as zod } from 'zod';
import { examples } from './rename.examples';
const contentSchema = (z: typeof zod) =>
z.object({
@@ -39,6 +40,7 @@ export const createFilesystemReadDirAction = () => {
id: 'fs:readdir',
description: 'Reads files and directories from the workspace',
supportsDryRun: true,
examples,
schema: {
input: {
paths: z => z.array(z.string().min(1)),