Skip to content

Commit

Permalink
renaming config
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed Dec 20, 2024
1 parent e4c3bea commit a06d15e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class PercyClient {
tags: tagsArr,
'cli-start-time': cliStartTime,
source: source,
'prod-build': this.config.percy?.prodBuild
'skip-base-build': this.config.percy?.skipBaseBuild
},
relationships: {
resources: {
Expand Down
6 changes: 3 additions & 3 deletions packages/client/test/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,10 @@ describe('PercyClient', () => {
}));
});

it('creates a new build with prodBuild config', async () => {
it('creates a new build with skipBaseBuild config', async () => {
client = new PercyClient({
token: 'PERCY_TOKEN',
config: { percy: { prodBuild: true } }
config: { percy: { skipBaseBuild: true } }
});
await expectAsync(client.createBuild({ projectType: 'web' })).toBeResolvedTo({
data: {
Expand Down Expand Up @@ -424,7 +424,7 @@ describe('PercyClient', () => {
'cli-start-time': null,
source: 'user_created',
partial: client.env.partial,
'prod-build': true,
'skip-base-build': true,
tags: []
}
}));
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const configSchema = {
labels: {
type: 'string'
},
prodBuild: {
skipBaseBuild: {
type: 'boolean',
default: false
}
Expand Down

0 comments on commit a06d15e

Please sign in to comment.