Skip to content

Commit

Permalink
fix(depsadapter.ts): remove CJS/ESM import/require mismatch warning code
Browse files Browse the repository at this point in the history
The export map now in package.json should now handle this
  • Loading branch information
Grunet committed Nov 28, 2021
1 parent 8cc32f4 commit 36175e9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/shared/depsAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ try {
//.default.default is used in the ESM build when the "import" call wraps the underlying "require" call output with its own default export wrapping
userEventInstance = result.default.default ?? result.default;
} catch (e) {
if (e.code && e.code.includes("MODULE_NOT_FOUND")) {
throw e;
}

console.error(e);
console.warn(
"Unable to find @testing-library/user-event. Proceeding without it."
Expand All @@ -27,10 +23,6 @@ try {
prettyDOM: prettyDOMInstance,
} = await import("@testing-library/dom"));
} catch (e) {
if (e.code && e.code.includes("MODULE_NOT_FOUND")) {
throw e;
}

console.error(e);
console.warn("Unable to find @testing-library/dom. Proceeding without it.");
}
Expand Down

0 comments on commit 36175e9

Please sign in to comment.