This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
build(deps-dev): bump @typescript-eslint/parser from 5.59.6 to 5.62.0 #573
GitHub Actions / JEST Tests
succeeded
Jul 17, 2023 in 0s
JEST Tests ✅
✅ jest-junit.xml
54 tests were completed in 5s with 54 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
src/extractors/youtube-new/parser/tests/parserHelperTest.test.ts | 7✅ | 233ms | ||
src/extractors/youtube-new/parser/tests/parserTest.test.ts | 24✅ | 2s | ||
src/extractors/youtube-new/proto/tests/protoTest.test.ts | 11✅ | 317ms | ||
src/extractors/youtube-new/requester/tests/controllerTest.test.ts | 1✅ | 335ms | ||
src/extractors/youtube-new/requester/tests/initializerTest.test.ts | 5✅ | 603ms | ||
src/extractors/youtube-new/rules/tests/ruleFactory.test.ts | 3✅ | 211ms | ||
src/utils/tests/helpers.test.ts | 2✅ | 196ms | ||
tests/main.test.ts | 1✅ | 157ms |
✅ src/extractors/youtube-new/parser/tests/parserHelperTest.test.ts
Helper Tests › ObjectRuleHelper Tests
✅ if fillRule correctly defaults a given rule
✅ if flattenObject correctly flattens a given object
✅ if flattenObject correctly flattens a given object with a keymap
✅ if jsonPathToObject functions as expected
Helper Tests › ArrayRuleHelper Tests
✅ if fillRule correctly defaults a given rule
Helper Tests › General Helper Tests
✅ if checkTypeGuard correctly checks a type guard
✅ if followKeymap correctly follows a keymap
✅ src/extractors/youtube-new/parser/tests/parserTest.test.ts
Parser Tests › parseRule Tests
✅ Should throw an error if the rule is not a valid type
Parser Tests › ObjectRuleParser Tests › applyObjectRule error handling
✅ if applyObjectRule throws an error if the given rule is not an object rule
✅ if applyObjectRule throws an error if the given rule is missing a properties key
✅ if applyObjectRule throws an error if the given object is not an object
✅ if applyObjectRule throws an error if the type of a property is not supported
✅ if sub-rule errors are handled correctly
✅ if sub-rule missing `rule` property
✅ if applyObjectRule throws an error if the given object has type mismatches
Parser Tests › ObjectRuleParser Tests › applyObjectRule functionality
✅ if applyObjectRule correctly applies a bare minimum rule
✅ if applyObjectRule correctly applies a rule with a keymap
✅ if applyObjectRule correctly applies a rule with a condition
Parser Tests › ObjectRuleParser Tests › applyObjectRule functionality › applyObjectRule properties tests
✅ if applyObjectRule correctly applies a rule with a required property (strict mode)
✅ if applyObjectRule correctly applies a rule with a required property (non-strict mode)
✅ if applyObjectRule correctly drops a non-required property
✅ if applyObjectRule correctly applies a rule with a default property
✅ if applyObjectRule correctly applies a rule with a sub-rule
✅ if applyObjectRule flattens a rule correctly
Parser Tests › ArrayRuleParser Tests › ArrayRuleParser Error Handling
✅ if ArrayRuleParser throws an error if rule is not type 'array'
✅ if ArrayRuleParser throws an error if rule is missing 'items' property
✅ if ArrayRuleParser throws an error if passed a non-array
✅ if ArrayRuleParser throws an error if passed an array with an invalid item
✅ if ArrayRuleParser throws an error with a bad item rule
Parser Tests › ArrayRuleParser Tests › ArrayRuleParser functionality
✅ if ArrayRuleParser correctly applies a bare minimum rule
✅ if ArrayRuleParser correctly applies condition
✅ src/extractors/youtube-new/proto/tests/protoTest.test.ts
protobuf parsing tests › if encodeVisitorData works
✅ abcd and 100 should be CgRhYmNkKGQ%3D
✅ efgh and 200 should be CgRlZmdoKMgB
✅ fgee-Eads1Q and 1640995200 should be CgtmZ2VlLUVhZHMxUSiAs76OBg%3D%3D
protobuf parsing tests › if encodeSearchFilter works
✅ {
uploadDate: 'year',
order: 'rating',
type: 'video',
duration: 'medium'
} should be CAESBggFEAEYAw%3D%3D
✅ { type: 'channel' } should be EgIQAg%3D%3D
✅ { features: [Array] } should be EgQgASgB
✅ { features: [Array] } should be EgVAAbgBAQ%3D%3D
✅ {
uploadDate: 'week',
type: 'video',
duration: 'long',
features: [Array],
order: 'uploadDate'
} should be CAISCAgDEAEYAjgB
protobuf parsing tests › if encodeCommentOptions works
✅ video abcd with options { sortBy: 'newestFirst' } should be EgYSBGFiY2QYBjIeIgoiBGFiY2QwAXgCQhBjb21tZW50cy1zZWN0aW9u
✅ video efgh with options { sortBy: 'topComments' } should be EgYSBGVmZ2gYBjIeIgoiBGVmZ2gwAHgCQhBjb21tZW50cy1zZWN0aW9u
✅ video dQw4w9WgXcQ with options { sortBy: 'topComments' } should be Eg0SC2RRdzR3OVdnWGNRGAYyJSIRIgtkUXc0dzlXZ1hjUTAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D
✅ src/extractors/youtube-new/requester/tests/controllerTest.test.ts
Controller Tests › Home Page Tests
✅ Should get a valid request option
✅ src/extractors/youtube-new/requester/tests/initializerTest.test.ts
Initializer Tests › Config Tests
✅ Should get a valid API key and client object
Initializer Tests › Config Tests › getInnertubeConfig error handling
✅ Should throw an error if an invalid API URL is provided
✅ Should throw an error if an invalid data structure is returned
Initializer Tests › Context Tests
✅ Should get a valid context object for any valid device type
Initializer Tests › Context Tests › getInnertubeConfig error handling
✅ Should throw an error if an invalid device type is provided
✅ src/extractors/youtube-new/rules/tests/ruleFactory.test.ts
ruleFactory tests
✅ ruleFactory should be able to create a rule
✅ ruleFactory should be able to create a rule with aliases
✅ ruleFactory should be able to populate a rule with sub-rules
✅ src/utils/tests/helpers.test.ts
UtilsBase › randomMobileUserAgent
✅ if a random mobile UserAgent is generated
UtilsBase › randomString
✅ if a random string is generated
✅ tests/main.test.ts
✅ tests on the old youtube extractor is now disabled as it is no longer maintained
Loading