Skip to content

Commit c1cbc14

Browse files
authored
Merge branch 'canary' into 19914-add-max-age-image-cache
2 parents 0ee0362 + b046a05 commit c1cbc14

File tree

5 files changed

+19
-138
lines changed

5 files changed

+19
-138
lines changed

test/integration/build-output/test/index.test.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,44 +115,44 @@ describe('Build Output', () => {
115115
expect(parseFloat(size)).toBeGreaterThan(0)
116116
}
117117

118-
const gz = gzipSize !== false
118+
// const gz = gzipSize !== false
119119

120-
expect(parseFloat(indexSize) / 1000).toBeCloseTo(
121-
gz ? 0.251 : 0.394,
122-
2
123-
)
120+
// expect(parseFloat(indexSize) / 1000).toBeCloseTo(
121+
// gz ? 0.251 : 0.394,
122+
// 2
123+
// )
124124
expect(indexSize.endsWith('B')).toBe(true)
125125

126-
expect(parseFloat(indexFirstLoad)).toBeCloseTo(gz ? 64 : 196, 1)
126+
// expect(parseFloat(indexFirstLoad)).toBeCloseTo(gz ? 64 : 196, 1)
127127
expect(indexFirstLoad.endsWith('kB')).toBe(true)
128128

129-
expect(parseFloat(err404Size)).toBeCloseTo(gz ? 3.17 : 8.51, 1)
129+
// expect(parseFloat(err404Size)).toBeCloseTo(gz ? 3.17 : 8.51, 1)
130130
expect(err404Size.endsWith('kB')).toBe(true)
131131

132-
expect(parseFloat(err404FirstLoad)).toBeCloseTo(gz ? 66.9 : 204, 1)
132+
// expect(parseFloat(err404FirstLoad)).toBeCloseTo(gz ? 66.9 : 204, 1)
133133
expect(err404FirstLoad.endsWith('kB')).toBe(true)
134134

135-
expect(parseFloat(sharedByAll)).toBeCloseTo(gz ? 63.7 : 196, 1)
135+
// expect(parseFloat(sharedByAll)).toBeCloseTo(gz ? 63.7 : 196, 1)
136136
expect(sharedByAll.endsWith('kB')).toBe(true)
137137

138-
const appSizeValue = _appSize.endsWith('kB')
139-
? parseFloat(_appSize)
140-
: parseFloat(_appSize) / 1000
141-
expect(appSizeValue).toBeCloseTo(gz ? 0.799 : 1.63, 1)
138+
// const appSizeValue = _appSize.endsWith('kB')
139+
// ? parseFloat(_appSize)
140+
// : parseFloat(_appSize) / 1000
141+
// expect(appSizeValue).toBeCloseTo(gz ? 0.799 : 1.63, 1)
142142
expect(_appSize.endsWith('kB') || _appSize.endsWith(' B')).toBe(true)
143143

144-
const webpackSizeValue = webpackSize.endsWith('kB')
145-
? parseFloat(webpackSize)
146-
: parseFloat(webpackSize) / 1000
147-
expect(webpackSizeValue).toBeCloseTo(gz ? 0.766 : 1.46, 2)
144+
// const webpackSizeValue = webpackSize.endsWith('kB')
145+
// ? parseFloat(webpackSize)
146+
// : parseFloat(webpackSize) / 1000
147+
// expect(webpackSizeValue).toBeCloseTo(gz ? 0.766 : 1.46, 2)
148148
expect(webpackSize.endsWith('kB') || webpackSize.endsWith(' B')).toBe(
149149
true
150150
)
151151

152-
expect(parseFloat(mainSize)).toBeCloseTo(gz ? 20.1 : 62.7, 1)
152+
// expect(parseFloat(mainSize)).toBeCloseTo(gz ? 20.1 : 62.7, 1)
153153
expect(mainSize.endsWith('kB')).toBe(true)
154154

155-
expect(parseFloat(frameworkSize)).toBeCloseTo(gz ? 42.0 : 130, 1)
155+
// expect(parseFloat(frameworkSize)).toBeCloseTo(gz ? 42.0 : 130, 1)
156156
expect(frameworkSize.endsWith('kB')).toBe(true)
157157
})
158158

test/integration/size-limit/next.config.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/integration/size-limit/pages/about.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/integration/size-limit/pages/index.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/integration/size-limit/test/index.test.js

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)