Commit 40e64b0
committed
fix: injecting DOM Testing Library on Firefox
Evaluating the UMD script is not enough to add TestingLibraryDom to the
window when running on Firefox. Add a script tag to the head element
with the UMD inlined to add TestingLibraryDom to the window.
Why it doesn't work is not clear to me right now so there may be a
better way of fixing this. I'm assuming this is a security feature of
Firefox but that is a guess.1 parent 1917acc commit 40e64b0
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
0 commit comments