We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b224c8 commit 0dff201Copy full SHA for 0dff201
packages/react/testing-library/src/vitest.config.js
@@ -71,6 +71,18 @@ export const createVitestConfig = async (options) => {
71
paths: [runtimeDir],
72
}),
73
},
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
84
85
86
];
87
let reactCompilerRuntimeAlias = [];
88
try {
0 commit comments