Skip to content

Commit

Permalink
Update failing diff amount to be 1kb
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 5, 2020
1 parent 3fc9152 commit 661e84f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/size-limit/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ describe('Production response size', () => {

// These numbers are without gzip compression!
const delta = responseSizesBytes - 226 * 1024
expect(delta).toBeLessThanOrEqual(512) // don't increase size more than 512 bytes
expect(delta).toBeGreaterThanOrEqual(-512) // don't decrease size more than 512 bytes without updating target
expect(delta).toBeLessThanOrEqual(1024) // don't increase size more than 1kb
expect(delta).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target
})

it('should not increase the overall response size of modern build', async () => {
Expand All @@ -101,7 +101,7 @@ describe('Production response size', () => {

// These numbers are without gzip compression!
const delta = responseSizesBytes - 195 * 1024
expect(delta).toBeLessThanOrEqual(512) // don't increase size more than 512 bytes
expect(delta).toBeGreaterThanOrEqual(-512) // don't decrease size more than 512 bytes without updating target
expect(delta).toBeLessThanOrEqual(1024) // don't increase size more than 1kb
expect(delta).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target
})
})

0 comments on commit 661e84f

Please sign in to comment.