From 1bbc16ca4b9a3d3c6e1b265ad04b21694ca9c9ff Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Sat, 6 Jan 2024 22:28:11 +0800 Subject: [PATCH] fix: server-prod tests in windows --- tests/integration/server-prod/tests/index.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/server-prod/tests/index.test.ts b/tests/integration/server-prod/tests/index.test.ts index 7f706d991f03..39599e054235 100644 --- a/tests/integration/server-prod/tests/index.test.ts +++ b/tests/integration/server-prod/tests/index.test.ts @@ -41,7 +41,8 @@ describe('test basic usage', () => { expect(fs.readFileSync(mainEntry, 'utf-8')).toMatch( '', ); - const mediaPath = path.join('static', 'image', 'icon.png'); + const mediaPath = `static/image/icon.png`; + expect(fs.readFileSync(mainEntry, 'utf-8')).toMatch( ``, );