(cleanUpAfterTests = true)
| 71 | * containers children |
| 72 | */ |
| 73 | export function setupTesting(cleanUpAfterTests = true) { |
| 74 | let testingContainer = document.getElementById('testingContainer'); |
| 75 | |
| 76 | if (!testingContainer) { |
| 77 | testingContainer = document.createElement('div'); |
| 78 | testingContainer.id = "testingContainer"; |
| 79 | document.body.appendChild(testingContainer); |
| 80 | } |
| 81 | |
| 82 | if (cleanUpAfterTests) { |
| 83 | testingContainer.innerHTML = ""; |
| 84 | |
| 85 | afterEach(function() { |
| 86 | testingContainer.innerHTML = ""; |
| 87 | }); |
| 88 | } |
| 89 | } |
no outgoing calls
no test coverage detected