diff --git a/packages/gamut/package.json b/packages/gamut/package.json index c2da92877f..a4712fc306 100644 --- a/packages/gamut/package.json +++ b/packages/gamut/package.json @@ -22,7 +22,7 @@ "react-aria-tabpanel": "^4.4.0", "react-focus-on": "^3.5.1", "react-hook-form": "^7.21.2", - "react-player": "^2.3.1", + "react-player": "^2.16.0", "react-select": "^5.2.2", "react-truncate-markup": "^5.1.2", "react-use": "^15.3.8", diff --git a/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx b/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx index aefc4b3018..074bf1e26d 100644 --- a/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx +++ b/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx @@ -7,6 +7,13 @@ import * as React from 'react'; import { Markdown } from '../index'; +const mockTitle = 'a fake youtube'; + +jest.mock('react-player', () => ({ + __esModule: true, + default: () => `; +const vimeoMarkdown = ` + +`; + +const videoMarkdown = ` +