Skip to content

Commit b5ead1c

Browse files
author
rocketraccoon
committed
feat(testing-library): testplane testing library # fix import
1 parent 257df1a commit b5ead1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ declare global {
3434
}
3535
}
3636

37-
const DOM_TESTING_LIBRARY_UMD_PATH = path.resolve(
38-
__dirname,
39-
"../",
40-
"./node_modules/@testing-library/dom/dist/@testing-library/dom.umd.js",
37+
const DOM_TESTING_LIBRARY_UMD_PATH = path.join(
38+
require.resolve("@testing-library/dom"),
39+
"../../",
40+
"dist/@testing-library/dom.umd.js"
4141
);
4242

4343
const DOM_TESTING_LIBRARY_UMD = fs.readFileSync(DOM_TESTING_LIBRARY_UMD_PATH).toString().replace("define.amd", "false");

0 commit comments

Comments
 (0)