You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mercury-parser/src/utils/dom
Sarah Doire c0364ec52b
feat: update all fixtures and custom parsers to match (#713)
* feat: Refactor and update fixtures

This patch changes how fixtures are stored. Previously, a fixture's folder identified its domain and its filename identified when it was fetched. This has been changed so that the filename indicates the domain and the modified time of the file indicates how recently it was fetched. A fixture's filename can optionally include a modifier to distinguish between two different page types on the same domain, for example.

Also included here are changes to the update-fixture script, both to accomodate the new filename scheme as well as to actually update all fixtures. The functionality for running automatically and opening PRs has been removed but will likely be reintroduced.

Finally, all fixtures have been updated.

* Remove reference to deleted extractor

* feat: first batch of test and parser updates due to new fixtures

* feat: update more custom parsers and unit tests

* feat: update more custom parsers and unit tests and remove unnecessary parser

* feat: update more custom parsers and unit tests

* feat: update more parsers and add correct bloomberg html files

* fix: remove console statement

* feat: all parsers updated and tests passing

* fix: update date_published tests to account for test server time difference

* fix: cleanup remaining fixtures in folders

* feat: move fixtures for newest custom parsers

* feat: remove script changes

* fix: update dist files to account for reverting script changes

* adding .DS_Store to .gitignore

* adding .DS_Store to .gitignore -- 2

* adding .DS_Store to .gitignore -- 3 lol

* cleaning up some tests

* fix: ran build:generator command to update generate-custom-parser dist file

* fix: update rollup configs to generate source maps and update source maps

* fix: use underscore in place of unused error variable

* fix: remove unused fixture

Co-authored-by: Postlight Bot <adam.pash+postlight-bot@postlight.com>
Co-authored-by: flbn <overasc@gmail.com>
1 year ago
..
brs-to-ps.js dx: remove unnec comments in source (#205) 5 years ago
brs-to-ps.test.js feat: update all fixtures and custom parsers to match (#713) 1 year ago
clean-attributes.js dx: remove unnec comments in source (#205) 5 years ago
clean-attributes.test.js chore: Inline test fixtures (#683) 2 years ago
clean-h-ones.js build for comparisons 8 years ago
clean-h-ones.test.js chore: Inline test fixtures (#683) 2 years ago
clean-headers.js chore: refactored and linted 8 years ago
clean-headers.test.js chore: Inline test fixtures (#683) 2 years ago
clean-images.js chore: refactored and linted 8 years ago
clean-images.test.js chore: Inline test fixtures (#683) 2 years ago
clean-tags.js fresh run of prettier; remove NOTES.md (#233) 5 years ago
clean-tags.test.js chore: Inline test fixtures (#683) 2 years ago
constants.js fix: better handling for responsive images (#312) 5 years ago
convert-node-to.js dx: remove unnec comments in source (#205) 5 years ago
convert-node-to.test.js chore: Inline test fixtures (#683) 2 years ago
convert-to-paragraphs.js feat: Add figcaption to list of non-convertible span parents (#682) 2 years ago
convert-to-paragraphs.test.js feat: update all fixtures and custom parsers to match (#713) 1 year ago
extract-from-meta.js deps: upgrade (#218) 5 years ago
extract-from-meta.test.js chore: Inline test fixtures (#683) 2 years ago
extract-from-selectors.js deps: upgrade (#218) 5 years ago
extract-from-selectors.test.js chore: Inline test fixtures (#683) 2 years ago
get-attrs.js Feat: browser support (#19) 8 years ago
get-attrs.test.js Feat: browser support (#19) 8 years ago
index.js chore: update node and some deps (#209) 5 years ago
is-wordpress.js chore: refactored and linted 8 years ago
is-wordpress.test.js chore: refactored and linted 8 years ago
link-density.js fresh run of prettier; remove NOTES.md (#233) 5 years ago
link-density.test.js chore: Inline test fixtures (#683) 2 years ago
make-links-absolute.js fix: skip absolutizing invalid srcsets (#386) 5 years ago
make-links-absolute.test.js chore: Inline test fixtures (#683) 2 years ago
mark-to-keep.js chore: update node and some deps (#209) 5 years ago
mark-to-keep.test.js chore: Inline test fixtures (#683) 2 years ago
node-is-sufficient.js chore: refactored and linted 8 years ago
node-is-sufficient.test.js chore: Inline test fixtures (#683) 2 years ago
paragraphize.js deps: upgrade (#218) 5 years ago
paragraphize.test.js chore: Inline test fixtures (#683) 2 years ago
remove-empty.js chore: update node and some deps (#209) 5 years ago
remove-empty.test.js chore: Inline test fixtures (#683) 2 years ago
rewrite-top-level.js chore: refactored and linted 8 years ago
rewrite-top-level.test.js chore: Inline test fixtures (#683) 2 years ago
set-attr.js Feat: browser support (#19) 8 years ago
set-attr.test.js Feat: browser support (#19) 8 years ago
set-attrs.js chore: update node and some deps (#209) 5 years ago
set-attrs.test.js Feat: browser support (#19) 8 years ago
strip-junk-tags.js chore: update node and some deps (#209) 5 years ago
strip-junk-tags.test.js chore: Inline test fixtures (#683) 2 years ago
strip-tags.js chore: refactored and linted 8 years ago
strip-tags.test.js chore: refactored and linted 8 years ago
strip-unlikely-candidates.js fresh run of prettier; remove NOTES.md (#233) 5 years ago
strip-unlikely-candidates.test.js feat: update all fixtures and custom parsers to match (#713) 1 year ago
within-comment.js chore: update node and some deps (#209) 5 years ago
within-comment.test.js chore: Inline test fixtures (#683) 2 years ago