Merge pull request #29447 from franvivas/master

To Include user field in createMockActionContext
This commit is contained in:
Ben Lambert
2025-04-29 14:35:16 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-node-test-utils': patch
---
Include optional `user` in `createMockActionContext`
@@ -74,6 +74,7 @@ export const createMockActionContext = <
templateInfo,
workspacePath,
task,
user,
} = options;
return {
@@ -87,6 +88,7 @@ export const createMockActionContext = <
...(input && { input }),
...(secrets && { secrets }),
...(task && { task }),
...(user && { user }),
templateInfo,
};
};