diff --git a/build/build-bundle.js b/build/build-bundle.js index 077845fecf25..2dcd56d586c8 100644 --- a/build/build-bundle.js +++ b/build/build-bundle.js @@ -71,7 +71,14 @@ async function browserifyFile(entryPath, distPath) { .ignore('intl-pluralrules') .ignore('raven') .ignore('rimraf') - .ignore('pako/lib/zlib/inflate.js'); + .ignore('pako/lib/zlib/inflate.js') + .ignore('file') // required by jsonlint-mod + .ignore('system'); // required by jsonlint-mod + + // There is no way to add './doug-json-parse' to ignored packages via public API + // w/o browserify resolving the path into an absolute path + // @ts-ignore + bundle._ignore.push('./doug-json-parse'); // Don't include the desktop protocol connection. bundle.ignore(require.resolve('../lighthouse-core/gather/connections/cri.js')); diff --git a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap index e106723d1b59..50b1d1effa7b 100644 --- a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap +++ b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap @@ -420,6 +420,9 @@ Object { Object { "path": "seo/canonical", }, + Object { + "path": "seo/json-ld", + }, Object { "path": "seo/manual/structured-data", }, @@ -1109,6 +1112,11 @@ Object { "id": "canonical", "weight": 1, }, + Object { + "group": "seo-content", + "id": "json-ld", + "weight": 1, + }, Object { "group": "seo-mobile", "id": "font-size", diff --git a/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html b/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html index 403af919f2f8..41c67164821d 100644 --- a/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html +++ b/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html @@ -115,6 +115,15 @@ + + +
diff --git a/lighthouse-cli/test/fixtures/seo/seo-failure-cases.html b/lighthouse-cli/test/fixtures/seo/seo-failure-cases.html index f4640f0f1bd1..39ca3141f4ff 100644 --- a/lighthouse-cli/test/fixtures/seo/seo-failure-cases.html +++ b/lighthouse-cli/test/fixtures/seo/seo-failure-cases.html @@ -20,6 +20,14 @@ + +