Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
refactor(yt:shared): moved parsers from yt:backend (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea authored Sep 26, 2022
1 parent db75934 commit 217f638
Show file tree
Hide file tree
Showing 246 changed files with 63,424 additions and 34,463 deletions.
8 changes: 4 additions & 4 deletions packages/shared/src/test/utils/parser.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
export const readFixtureJSONPaths = (
fixtureDir: string,
opts?: {
exclude: string[];
only: string[];
exclude?: string[];
only?: string[];
}
): any[] => {
const paths = fs
Expand All @@ -29,9 +29,9 @@ export const readFixtureJSONPaths = (
.map((fp) => path.resolve(fixtureDir, fp));

const filteredPaths = opts?.exclude
? paths.filter((p) => !opts.exclude.some((id) => p.includes(id)))
? paths.filter((p) => !(opts.exclude ?? []).some((id) => p.includes(id)))
: opts?.only
? paths.filter((p) => opts.only.find((id) => p.includes(id)))
? paths.filter((p) => (opts.only ?? []).find((id) => p.includes(id)))
: paths;

// eslint-disable-next-line
Expand Down
1 change: 0 additions & 1 deletion platforms/yttrex/backend/__tests__/curly.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fetchMock from 'jest-fetch-mock';
import { recentVideoFetch } from '../lib/curly';

import initialData from './fixtures/ytInitialData.json';

describe('The recentVideoFetch function', () => {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 217f638

Please sign in to comment.