From 7c44ee1c2a3737e94dccc255abb4ff3373c9d1e6 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Fri, 10 Dec 2021 10:54:17 +0800 Subject: [PATCH] fix: Fix e2e i18n Fix e2e i18n: fix zh.json path Change-Id: If486e8e9fc19d20c86ef10729a7e04963664a05c --- test/e2e/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/utils/index.js b/test/e2e/utils/index.js index 4f1e5b5d..23f3742f 100644 --- a/test/e2e/utils/index.js +++ b/test/e2e/utils/index.js @@ -30,7 +30,7 @@ const loadYaml = (filePath) => { }; function getZhJson() { - const jsonPath = root('src/locales/zh.json'); + const jsonPath = root('../src/locales/zh.json'); try { const rawData = fs.readFileSync(jsonPath); const translate = JSON.parse(rawData);