Skip to content

Commit 3e6c82f

Browse files
committed
Fix dom testing examples
1 parent 30f3c0c commit 3e6c82f

File tree

5 files changed

+15969
-82
lines changed

5 files changed

+15969
-82
lines changed

apps/components_guide_web/assets/js/app.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// its own CSS file.
44
import css from "../css/app.css";
55

6+
console.log("app.js executing");
7+
68
// webpack automatically bundles all modules in your
79
// entry points. Those entry points can be configured
810
// in "webpack.config.js".
@@ -15,6 +17,16 @@ import NProgress from "nprogress";
1517
import LiveSocket from "phoenix_live_view";
1618
import * as Turbo from "@hotwired/turbo";
1719

20+
// window.IMPORTS = {
21+
// DOMTesting: import("@testing-library/dom")
22+
// };
23+
24+
window.IMPORT = {
25+
DOMTesting: () => import("@testing-library/dom")
26+
};
27+
28+
console.log("app.js IMPORT", window.IMPORT);
29+
1830
let csrfToken = document
1931
.querySelector("meta[name='csrf-token']")
2032
.getAttribute("content");

0 commit comments

Comments
 (0)