(harness)
| 124 | } |
| 125 | |
| 126 | function lazyAssertObject(harness) { |
| 127 | if (assertObj === undefined) { |
| 128 | const { getAssertionMap } = require('internal/test_runner/assert'); |
| 129 | const { SnapshotManager } = require('internal/test_runner/snapshot'); |
| 130 | |
| 131 | assertObj = getAssertionMap(); |
| 132 | harness.snapshotManager = new SnapshotManager(harness.config.updateSnapshots); |
| 133 | |
| 134 | if (!assertObj.has('snapshot')) { |
| 135 | assertObj.set('snapshot', harness.snapshotManager.createAssert()); |
| 136 | } |
| 137 | |
| 138 | if (!assertObj.has('fileSnapshot')) { |
| 139 | assertObj.set('fileSnapshot', harness.snapshotManager.createFileAssert()); |
| 140 | } |
| 141 | } |
| 142 | return assertObj; |
| 143 | } |
| 144 | |
| 145 | function stopTest(timeout, signal) { |
| 146 | const deferred = PromiseWithResolvers(); |
no test coverage detected
searching dependent graphs…