(entryFile)
| 139 | } |
| 140 | |
| 141 | resolveSnapshotFile(entryFile) { |
| 142 | let snapshotFile = this.cache.get(entryFile); |
| 143 | |
| 144 | if (snapshotFile === undefined) { |
| 145 | const resolved = resolveSnapshotPathFn(entryFile); |
| 146 | |
| 147 | if (typeof resolved !== 'string') { |
| 148 | const err = new ERR_INVALID_STATE('Invalid snapshot filename.'); |
| 149 | err.filename = resolved; |
| 150 | throw err; |
| 151 | } |
| 152 | |
| 153 | snapshotFile = new SnapshotFile(resolved); |
| 154 | snapshotFile.loaded = this.updateSnapshots; |
| 155 | this.cache.set(entryFile, snapshotFile); |
| 156 | } |
| 157 | |
| 158 | return snapshotFile; |
| 159 | } |
| 160 | |
| 161 | serialize(input, serializers = serializerFns) { |
| 162 | try { |
no test coverage detected