From 2b5dfee7f8b91b364baece1940bf77c5e39398ab Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Thu, 19 Sep 2019 15:15:16 +0200 Subject: [PATCH] fix tests (temporary) --- .github/workflows/ci.yml | 8 ++++---- test/snapshots/test/index.js.md | 24 ++++++++++++------------ test/snapshots/test/index.js.snap | Bin 2204 -> 2187 bytes 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a43226f..e5f0652 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: node-version: '10.x' - name: Install, link plugin locally, and test run: | - yarn install - yarn link - yarn link lighthouse-plugin-field-performance - yarn test + npm install + npm link + npm link lighthouse-plugin-field-performance + npm test diff --git a/test/snapshots/test/index.js.md b/test/snapshots/test/index.js.md index 38a62a2..4e23e7d 100644 --- a/test/snapshots/test/index.js.md +++ b/test/snapshots/test/index.js.md @@ -67,7 +67,7 @@ Generated by [AVA](https://ava.li). items: [ { category: 'Fast (faster than 50 ms)', - distribution: '93 %', + distribution: '94 %', }, { category: 'Average (from 50 ms to 250 ms)', @@ -80,10 +80,10 @@ Generated by [AVA](https://ava.li). ], type: 'table', }, - displayValue: '120 ms', + displayValue: '90 ms', id: 'field-fid', - numericValue: 122, - score: 0.83, + numericValue: 86, + score: 0.93, scoreDisplayMode: 'numeric', title: 'First Input Delay (URL)', } @@ -108,7 +108,7 @@ Generated by [AVA](https://ava.li). items: [ { category: 'Fast (faster than 1 s)', - distribution: '57 %', + distribution: '58 %', }, { category: 'Average (from 1 s to 2.5 s)', @@ -116,14 +116,14 @@ Generated by [AVA](https://ava.li). }, { category: 'Slow (longer than 2.5 s)', - distribution: '11 %', + distribution: '10 %', }, ], type: 'table', }, displayValue: '2.6 s', id: 'field-fcp-origin', - numericValue: 2563, + numericValue: 2553, score: 0.48, scoreDisplayMode: 'numeric', title: 'First Contentful Paint (Origin)', @@ -149,7 +149,7 @@ Generated by [AVA](https://ava.li). items: [ { category: 'Fast (faster than 50 ms)', - distribution: '93 %', + distribution: '94 %', }, { category: 'Average (from 50 ms to 250 ms)', @@ -162,10 +162,10 @@ Generated by [AVA](https://ava.li). ], type: 'table', }, - displayValue: '110 ms', + displayValue: '90 ms', id: 'field-fid-origin', - numericValue: 112, - score: 0.86, + numericValue: 86, + score: 0.93, scoreDisplayMode: 'numeric', title: 'First Input Delay (Origin)', } @@ -197,7 +197,7 @@ Generated by [AVA](https://ava.li). ], description: 'These metrics show the performance of the page for real-world Chrome users over the last 30 days. Data is collected anonymously in the "field" and provided by Chrome UX Report. [Learn More](https://developers.google.com/web/tools/chrome-user-experience-report/)', id: 'lighthouse-plugin-field-performance', - score: 0.66, + score: 0.71, title: 'Field Performance', } diff --git a/test/snapshots/test/index.js.snap b/test/snapshots/test/index.js.snap index 065130df8a8dafe87e4b2ed6687cef4870f94de1..fb61ee2cefdfd31f4731499f7793b043faae1549 100644 GIT binary patch literal 2187 zcmV;62z2*BRzVDOCO5}00000000B+ zntf~}WgW+7c6PVzVQC8lP7v?OVWkJ`ZhLpFS2SmiE0sHemU{v2Q0}HP&+b0g*_mPH z*_NId)EEu%50MvhQ4)Cz!9SFL1S5j-A|AnD%=r%|dJ;Vegs7)6F@})%eP(uNcW1Yq z>C*P(Y?JTx>CAVY=b7jE?eDX{nL8{=QbIa)`NYgscb^!#ApflV{{Ht%>#P$6^_jy5w(TE2dL-o?{o;CGXZQPh`chx}FZ1=AoFpky zhc}AcDR=F}?@4GvmZTzd5A+oDI`kftNl4PUa=K4WPfQ)68kgmu+1uMI$=&Ehl6&Au zoF^-ioa&R$(y6OC%;wB8E5{PQlg63ja8{Y>-KnnVghVXWAvaNC{^pN>ol} zi%cteNAlh!oZilfN(xg z+#EAqRw!~eH#3}5r>ru+B(L7KL6Xmw4)|6aG4okgnZ z%q+OxnYBvoOp0+@3NKxf&)K!bYalbT{;) zWN3Mkjmrc3aajHcC6OksNQLaFuwA(Y78N=YwstgGp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