Skip to content

Commit 08ee552

Browse files
committed
fix: re-add writing of fixtures if not found
Ticket: BTC-1638 TICKET: BTC-1638
1 parent 9cba526 commit 08ee552

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/bitgo/test/v2/unit/coins/utxo/util/fixtures.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ async function getFixtureWithName<T>(name: string, defaultValue: T, rawCoinName:
3434
return JSON.parse(textContent);
3535
} catch (e) {
3636
if (e.code === 'ENOENT') {
37+
await fs.writeFile(path, JSON.stringify(defaultValue, serializeBigInt, 2));
3738
throw new Error(`Wrote defaultValue to ${path}. Inspect output and rerun tests.`);
3839
}
3940
throw e;

0 commit comments

Comments
 (0)