From 05c30677f5043a04e70cf5539146102bbf15aa50 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 17 Jun 2022 14:26:12 -0400 Subject: [PATCH] test: fix i18n tests --- test/i18n.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/i18n.js b/test/i18n.js index 401b2c26fb..35ee1397f5 100644 --- a/test/i18n.js +++ b/test/i18n.js @@ -41,6 +41,10 @@ describe('i18n', () => { it('should only contain valid JSON files', async () => { try { fullPaths.forEach((fullPath) => { + if (fullPath.endsWith('_DO_NOT_EDIT_FILES_HERE.md')) { + return; + } + const hash = require(fullPath); sourceStrings.set(fullPath.replace(sourcePath, ''), hash); }); @@ -84,6 +88,10 @@ describe('i18n', () => { it('should contain only valid JSON files', () => { try { fullPaths.forEach((fullPath) => { + if (fullPath.endsWith('_DO_NOT_EDIT_FILES_HERE.md')) { + return; + } + const hash = require(fullPath); strings.set(fullPath.replace(translationPath, ''), hash); });