From e0b58d73889c36c99c523943b19bfe23219aac84 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Wed, 8 May 2024 14:38:39 +0800 Subject: [PATCH] f --- test/doc.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/doc.test.js b/test/doc.test.js index 1c855c7c21..de53ea206b 100644 --- a/test/doc.test.js +++ b/test/doc.test.js @@ -18,7 +18,7 @@ describe('test/doc.test.js', () => { const mainNodejsVersion = parseInt(process.versions.node.split('.')[0]); - if (process.platform !== 'win32' && mainNodejsVersion >= 18) { + if (process.platform === 'linux' && mainNodejsVersion >= 18) { const cwd = path.dirname(__dirname); const dumi = path.join(cwd, 'node_modules', '.bin', 'dumi'); await runscript(`cross-env NODE_OPTIONS=--openssl-legacy-provider APP_ROOT=./site ${dumi} build`,