From 217f9818e1e11415efc564ba9e6653658e6af07c Mon Sep 17 00:00:00 2001 From: Cameron Manavian Date: Wed, 4 Jan 2023 15:28:54 -0800 Subject: [PATCH] docs: recover missing docs (#718) * halt on error * remove dupe * cs Co-authored-by: Anderson Arboleya --- .changeset/tiny-mayflies-guess.md | 5 +++++ packages/wallet-manager/src/wallet-manager.test.ts | 3 --- scripts/typedoc-plugin-guide-builder/src/guide-builder.ts | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/tiny-mayflies-guess.md diff --git a/.changeset/tiny-mayflies-guess.md b/.changeset/tiny-mayflies-guess.md new file mode 100644 index 00000000000..452d9d1ae02 --- /dev/null +++ b/.changeset/tiny-mayflies-guess.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/wallet-manager": patch +--- + +Fix test that had duplicated doc region diff --git a/packages/wallet-manager/src/wallet-manager.test.ts b/packages/wallet-manager/src/wallet-manager.test.ts index 400e328ea74..e1c0af06ec5 100644 --- a/packages/wallet-manager/src/wallet-manager.test.ts +++ b/packages/wallet-manager/src/wallet-manager.test.ts @@ -140,13 +140,10 @@ describe('Wallet Manager', () => { }); it('Return account when adding account to vault', async () => { - // #region typedoc:wallet-manager-create const walletManager = new WalletManager(); const password = '0b540281-f87b-49ca-be37-2264c7f260f7'; - // Add a vault of type privateKey await walletManager.unlock(password); - // #endregion await walletManager.addVault({ type: 'mnemonic', diff --git a/scripts/typedoc-plugin-guide-builder/src/guide-builder.ts b/scripts/typedoc-plugin-guide-builder/src/guide-builder.ts index ff25f05cdbe..37ae4f89320 100644 --- a/scripts/typedoc-plugin-guide-builder/src/guide-builder.ts +++ b/scripts/typedoc-plugin-guide-builder/src/guide-builder.ts @@ -158,7 +158,8 @@ export class GuideBuilder { } } } catch (error) { - console.log('failed to copy files:', error); + console.warn('failed to copy files:', error); + throw new Error('Failed to generate Guide'); } console.log(`Documentation generated at ${this._options.guideOutput}`);