🎥 Make videos programmatically with React
Remove fixed Storytelling source list assertion
Jonny Burgerf4aaf063422f
diff --git a/packages/docs/src/test/elements.test.ts b/packages/docs/src/test/elements.test.tsindex ee1f1637e5..1c0b9182cb 100644--- a/packages/docs/src/test/elements.test.ts+++ b/packages/docs/src/test/elements.test.ts@@ -213,7 +213,7 @@ describe('Element MDX pages', () => {});describe('Element Library', () => {- test('injects the exact source files needed by each listing', () => {+ test('injects source files into the overview and rejects missing sources', () => {const completeSourceCodeBySlug = getRemotionElementSourceMap({elementsRoot,});@@ -271,20 +271,6 @@ describe('Element Library', () => {completeSourceCodeBySlug,);- const storytelling = makeLibraryNode('storytelling');- remarkElementSource({elementRegistry})(- {type: 'root', children: [storytelling]},- {path: path.join(elementsRoot, 'storytelling', 'index.mdx')},- );- expect(getInjectedSourceCodeBySlug(storytelling)).toEqual({- 'storytelling/on-screen-messages':- completeSourceCodeBySlug['storytelling/on-screen-messages'],- 'storytelling/polaroid-pictures':- completeSourceCodeBySlug['storytelling/polaroid-pictures'],- 'text/news-article-highlight':- completeSourceCodeBySlug['text/news-article-highlight'],- });-const missingSource = makeLibraryNode(null);expect(() =>remarkElementSource({