(
/** @type {string[]} */ fileList,
/** @type {(err?: Error | null, snapshot?: Snapshot | null) => void} */ cb
)
| 1119 | class="cm">// Fixed start time so the shared-snapshot start-time guard always passes. |
| 1120 | const startTime = Date.now() + 10000; |
| 1121 | const make = ( |
| 1122 | /** @type {string[]} */ fileList, |
| 1123 | /** @type {(err?: Error | null, snapshot?: Snapshot | null) => void} */ cb |
| 1124 | ) => |
| 1125 | fsInfo.createSnapshot( |
| 1126 | startTime, |
| 1127 | fileList, |
| 1128 | [], |
| 1129 | [], |
| 1130 | { timestamp: true }, |
| 1131 | cb |
| 1132 | ); |
| 1133 | class="cm">// 1st + 2nd identical snapshots create a shared common snapshot. |
| 1134 | make(files, (/** @type {Error | null | undefined} */ err) => { |
| 1135 | if (err) return done(err); |
no test coverage detected