From f710676d9bcd8145aad0f1a53a913cabd354d833 Mon Sep 17 00:00:00 2001 From: Ming <527990618@163.com> Date: Fri, 20 Sep 2024 11:48:15 +0800 Subject: [PATCH] fix(runtime): fix the alias problem on windows --- tests/jest-ut.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/jest-ut.config.js b/tests/jest-ut.config.js index 3ecb521e9327..79384aaf5f60 100644 --- a/tests/jest-ut.config.js +++ b/tests/jest-ut.config.js @@ -28,6 +28,12 @@ module.exports = { '^@meta/runtime$': '/packages/runtime/plugin-runtime/src', '^@meta/runtime/context$': '/packages/runtime/plugin-runtime/src/core/context', + '^@modern-js/runtime/browser$': + '/packages/runtime/plugin-runtime/src/core/browser', + '^@modern-js/runtime/react$': + '/packages/runtime/plugin-runtime/src/core/react', + '^@modern-js/runtime$': + '/packages/runtime/plugin-runtime/src/index', }, globals: {}, resolver: '/tests/jest.resolver.js',