Skip to content

Commit 0dff201

Browse files
Update packages/react/testing-library/src/vitest.config.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Yiming Li <yimingli.cs@gmail.com>
1 parent 1b224c8 commit 0dff201

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/react/testing-library/src/vitest.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export const createVitestConfig = async (options) => {
7171
paths: [runtimeDir],
7272
}),
7373
},
74+
{
75+
find: /^react\/jsx-runtime$/,
76+
replacement: require.resolve(path.posix.join(runtimeOSSPkgName, 'jsx-runtime'), {
77+
paths: [runtimeDir],
78+
}),
79+
},
80+
{
81+
find: /^react\/jsx-dev-runtime$/,
82+
replacement: require.resolve(path.posix.join(runtimeOSSPkgName, 'jsx-dev-runtime'), {
83+
paths: [runtimeDir],
84+
}),
85+
},
7486
];
7587
let reactCompilerRuntimeAlias = [];
7688
try {

0 commit comments

Comments
 (0)