Skip to content

Commit

Permalink
Add zip as a configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 14, 2023
1 parent 57a8b0b commit 874ba2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node-src/lib/getConfiguration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ it('returns nothing if there is no config file and it was specified', async () =
await expect(getConfiguration('test.file')).rejects.toThrow(/could not be found/);
});

it('errors if config file contains invalid date', async () => {
it('errors if config file contains invalid data', async () => {
mockedReadFile.mockResolvedValue({ projectToken: 1 });

await expect(getConfiguration('test.file')).rejects.toThrow(/projectToken/);
Expand Down
1 change: 1 addition & 0 deletions node-src/lib/getConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const configurationSchema = z
debug: z.boolean(),
diagnostics: z.union([z.string(), z.boolean()]),
junitReport: z.union([z.string(), z.boolean()]),
zip: z.boolean(),
autoAcceptChanges: z.union([z.string(), z.boolean()]),
exitZeroOnChanges: z.union([z.string(), z.boolean()]),
exitOnceUploaded: z.union([z.string(), z.boolean()]),
Expand Down

0 comments on commit 874ba2f

Please sign in to comment.