-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert transaction-utils to anvil (#278)
* convert transaction-utils to anvil fix anvil not closing within jest 1 second timeout by setting anvil timeout to 1 second too. * celo-devchain not needed anymore but it was accidentally providing bn types so those must be added * convert transaction-utils to anvil fix anvil not closing within jest 1 second timeout by setting anvil timeout to 1 second too. * celo-devchain not needed anymore but it was accidentally providing bn types so those must be added * why are these in the docs at all * Update packages/dev-utils/src/test-utils.ts Co-authored-by: Leszek Stachowski <[email protected]> --------- Co-authored-by: Leszek Stachowski <[email protected]>
- Loading branch information
Showing
12 changed files
with
33 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@celo/dev-utils': patch | ||
--- | ||
|
||
Fix jest force exits,Set default timeout to 1 second |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@celo/transactions-uri': patch | ||
--- | ||
|
||
Bump bn.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 1 addition & 12 deletions
13
packages/sdk/transactions-uri/src/test-utils/setup.global.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
import baseSetup from '@celo/dev-utils/lib/ganache-setup' | ||
// Has to import the matchers somewhere so that typescript knows the matchers have been made available | ||
import _must_be_imported from '@celo/dev-utils/lib/matchers' | ||
import { waitForPortOpen } from '@celo/dev-utils/lib/network' | ||
import * as path from 'path' | ||
|
||
// Warning: There should be an unused import of '@celo/dev-utils/lib/matchers' above. | ||
// If there is not, then your editor probably deleted it automatically. | ||
|
||
export default async function globalSetup() { | ||
const chainDataPath = path.join(path.dirname(require.resolve('@celo/celo-devchain')), '../chains') | ||
// vX refers to core contract release version X | ||
await baseSetup(path.resolve(chainDataPath), 'v11.tar.gz', { | ||
from_targz: true, | ||
}) | ||
await waitForPortOpen('localhost', 8545, 60) | ||
console.log('...ganache started') | ||
} | ||
export default async function globalSetup() {} |
6 changes: 1 addition & 5 deletions
6
packages/sdk/transactions-uri/src/test-utils/teardown.global.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
import teardown from '@celo/dev-utils/lib/ganache-teardown' | ||
|
||
export default async function globalTeardown() { | ||
await teardown() | ||
} | ||
export default async function globalTeardown() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters