fix: resolve transferSize TypeScript error in mobile performance test
This commit is contained in:
1 parent
941e5170e1
commit
a3533a8c98
1 file changed
+1
-1
@@ -45,7 +45,7 @@ test.describe('移动端性能测试 @mobile @performance', () => {
|
|||||||
await page.goto('/');
|
await page.goto('/');
|
||||||
|
|
||||||
const resources = await page.evaluate(() => {
|
const resources = await page.evaluate(() => {
|
||||||
return performance.getEntriesByType('resource').map(r => ({
|
return performance.getEntriesByType('resource').map((r: any) => ({
|
||||||
name: r.name,
|
name: r.name,
|
||||||
duration: r.duration,
|
duration: r.duration,
|
||||||
size: r.transferSize,
|
size: r.transferSize,
|
||||||
|
|||||||
Reference in new issue
Block a user