From 9373ac2333075dde1f2cd67f123b2779a85549de Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Thu, 21 Sep 2023 16:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=88=AA=E5=9B=BE=E5=AD=98=E5=82=A8=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest-setup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jest-setup.js b/jest-setup.js index 8ddb4e3d..0864a9de 100644 --- a/jest-setup.js +++ b/jest-setup.js @@ -6,13 +6,14 @@ const { const hbuilderx_version = process.env.HX_Version const uniTestPlatformInfo = process.env.uniTestPlatformInfo ? process.env.uniTestPlatformInfo.replace(/\s/g,'_') : '' const folderName = `__image_snapshots__/${hbuilderx_version}/__${uniTestPlatformInfo}__` +const baseFolderName = `__image_snapshots__/base` expect.extend({ toMatchImageSnapshot: configureToMatchImageSnapshot({ customSnapshotIdentifier(args) { return args.currentTestName.replace(/\//g, '-').replace(' ', '-'); }, - customSnapshotsDir: path.join(__dirname, folderName), + customSnapshotsDir: path.join(__dirname, baseFolderName), customDiffDir: path.join(__dirname, `${folderName}/`, 'diff'), }), }); \ No newline at end of file -- GitLab