Skip to content

Commit

Permalink
test(project): update playwright config
Browse files Browse the repository at this point in the history
  • Loading branch information
ernscht committed Apr 29, 2024
1 parent 828b92e commit 6d7926d
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ module.exports = {
skipAudits: [
// performance
'redirects',
'redirects-http',
'server-response-time',
'uses-http2',
'uses-long-cache-ttl',
// best-practices
'appcache-manifest',
'csp-xss',
'is-on-https',
'redirects-http',
// seo
'document-title',
'http-status-code',
'is-crawlable',
'meta-description',
'robots-txt',
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Quality Testing. Outputs Scores for one page.

[More about lighthouse](https://developers.google.com/web/tools/lighthouse/)
[More about lighthouse](https://developer.chrome.com/docs/lighthouse/overview/)

## Configuration

- The scope of the tests for the score evaluation can [be easily adjusted](./lighthouse.config.js).
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/default-config.js) (tests on server infrastructure and PWA were disabled)
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/main/core/config/default-config.js) (tests on server infrastructure were disabled)
- The page to test is defined in the npm script `lighthouse-test:run`
- The report is generated inside '/public/reports/lighthouse'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ module.exports = {
skipAudits: [
// performance
'redirects',
'redirects-http',
'server-response-time',
'uses-http2',
'uses-long-cache-ttl',
// best-practices
'appcache-manifest',
'csp-xss',
'is-on-https',
'redirects-http',
// seo
'document-title',
'http-status-code',
'is-crawlable',
'meta-description',
'robots-txt',
],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/project-nitro-twig/tests/lighthouse/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Quality Testing. Outputs Scores for one page.

[More about lighthouse](https://developers.google.com/web/tools/lighthouse/)
[More about lighthouse](https://developer.chrome.com/docs/lighthouse/overview/)

## Configuration

- The scope of the tests for the score evaluation can [be easily adjusted](./lighthouse.config.js).
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/default-config.js) (tests on server infrastructure and PWA were disabled)
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/main/core/config/default-config.js) (tests on server infrastructure were disabled)
- The page to test is defined in the npm script `lighthouse-test:run`
- The report is generated inside '/public/reports/lighthouse'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ module.exports = {
skipAudits: [
// performance
'redirects',
'redirects-http',
'server-response-time',
'uses-http2',
'uses-long-cache-ttl',
// best-practices
'appcache-manifest',
'csp-xss',
'is-on-https',
'redirects-http',
// seo
'document-title',
'http-status-code',
'is-crawlable',
'meta-description',
'robots-txt',
],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/project-nitro-typescript/tests/lighthouse/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Quality Testing. Outputs Scores for one page.

[More about lighthouse](https://developers.google.com/web/tools/lighthouse/)
[More about lighthouse](https://developer.chrome.com/docs/lighthouse/overview/)

## Configuration

- The scope of the tests for the score evaluation can [be easily adjusted](./lighthouse.config.js).
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/default-config.js) (tests on server infrastructure and PWA were disabled)
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/main/core/config/default-config.js) (tests on server infrastructure were disabled)
- The page to test is defined in the npm script `lighthouse-test:run`
- The report is generated inside '/public/reports/lighthouse'

Expand Down
6 changes: 5 additions & 1 deletion packages/project-nitro/tests/lighthouse/lighthouse.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ module.exports = {
skipAudits: [
// performance
'redirects',
'redirects-http',
'server-response-time',
'uses-http2',
'uses-long-cache-ttl',
// best-practices
'appcache-manifest',
'csp-xss',
'is-on-https',
'redirects-http',
// seo
'document-title',
'http-status-code',
'is-crawlable',
'meta-description',
'robots-txt',
],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/project-nitro/tests/lighthouse/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Quality Testing. Outputs Scores for one page.

[More about lighthouse](https://developers.google.com/web/tools/lighthouse/)
[More about lighthouse](https://developer.chrome.com/docs/lighthouse/overview/)

## Configuration

- The scope of the tests for the score evaluation can [be easily adjusted](./lighthouse.config.js).
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/default-config.js) (tests on server infrastructure and PWA were disabled)
- As default we use a slightly customized [default config](https://github.com/GoogleChrome/lighthouse/blob/main/core/config/default-config.js) (tests on server infrastructure were disabled)
- The page to test is defined in the npm script `lighthouse-test:run`
- The report is generated inside '/public/reports/lighthouse'

Expand Down

0 comments on commit 6d7926d

Please sign in to comment.