Skip to content

Commit cf3a936

Browse files
committed
fix: allow absent testProject for widgets
1 parent 493b26c commit cf3a936

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

automation/utils/src/package-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const PackageSchema = z.object({
8686
appNumber: true
8787
}),
8888
repository: RepositorySchema,
89-
testProject: TestProjectSchema
89+
testProject: TestProjectSchema.optional()
9090
});
9191

9292
export const PublishedPackageSchema = PackageSchema.extend({

automation/utils/src/steps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export async function cloneTestProject({ info, config }: CommonStepParams): Prom
4949
const clone = process.env.CI ? cloneRepoShallow : cloneRepo;
5050
rm("-rf", config.paths.targetProject);
5151
await clone({
52-
remoteUrl: testProject.githubUrl,
53-
branch: testProject.branchName,
52+
remoteUrl: testProject!.githubUrl,
53+
branch: testProject!.branchName,
5454
localFolder: config.paths.targetProject
5555
});
5656
}

0 commit comments

Comments
 (0)