🎥 Make videos programmatically with React
normalize eol on windows
Igor Samokhovetsc92784c80ef1
diff --git a/packages/it-tests/src/templates/validate-templates.test.ts b/packages/it-tests/src/templates/validate-templates.test.tsindex e1b8d283bd..1718ec832d 100644--- a/packages/it-tests/src/templates/validate-templates.test.ts+++ b/packages/it-tests/src/templates/validate-templates.test.ts@@ -4,6 +4,9 @@ import path from 'node:path';import {CreateVideoInternals, Template} from 'create-video';const {FEATURED_TEMPLATES} = CreateVideoInternals;+const normalizeEol = (contents: string) => {+ return contents.replaceAll('\r\n', '\n');+};const getFileForTemplate = (template: Template, file: string) => {return path.join(process.cwd(), '..', template.templateInMonorepo, file);@@ -285,7 +288,11 @@ describe('Templates should be valid', () => {const {contents} = await findFile([getFileForTemplate(template, '.prettierrc'),]);- expect(contents).toBe(`{+ expect(contents).toBeTruthy();+ if (!contents) {+ throw new Error('Expected .prettierrc to exist');+ }+ expect(normalizeEol(contents)).toBe(`{"useTabs": false,"bracketSpacing": true,"tabWidth": 2