()
| 1 | import "./index.css"; |
| 2 | |
| 3 | const findOurLink = () => { |
| 4 | const link = [...window.document.getElementsByTagName("link")].find( |
| 5 | (item) => |
| 6 | item.rel === "stylesheet" && |
| 7 | item.href && |
| 8 | item.href.includes("bundle.css") |
| 9 | ); |
| 10 | expect(link).toBeDefined(); |
| 11 | return link; |
| 12 | }; |
| 13 | |
| 14 | it("should not touch non-stylesheet, data:, anchor or external links during CSS HMR", (done) => { |
| 15 | const head = window.document.head; |
no test coverage detected