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/scripts
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
..
templates Change Name (#688) 2 years ago
check-build.test.js modifies check-build to differentiate between test env (#665) 2 years ago
comment-for-pr.js Change Name (#688) 2 years ago
find-and-replace.sh feat: update all fixtures and custom parsers to match (#713) 1 year ago
generate-custom-parser.js Change Name (#688) 2 years ago
generate-fixture-preview.js chore: update node and some deps (#209) 5 years ago
karma.conf.js fix: non-forked packages breaking web build (#225) 5 years ago
pr-parser-preview.sh chore: set up ciftr for failed test reports (#343) 5 years ago
proxy-browser-test.js Update more dependencies (#687) 2 years ago
rollup.config.js feat: update all fixtures and custom parsers to match (#713) 1 year ago
update-fixtures.js Change Name (#688) 2 years ago
write-test-report.js chore: set up ciftr for failed test reports (#343) 5 years ago