mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-08 12:28:05 +00:00
Group transactions to decrease overall test suite run time (#81)
* Refactor transaction wait for value types and arrays. * Refactor transaction wait for reference type variables. Co-authored-by: nikugogoi <95nikass@gmail.com>
This commit is contained in:
parent
38a189d74a
commit
7bbc920fda
@ -1,6 +1,6 @@
|
||||
import { expect } from 'chai';
|
||||
import '@nomiclabs/hardhat-ethers';
|
||||
import { artifacts, ethers } from 'hardhat';
|
||||
import { artifacts } from 'hardhat';
|
||||
|
||||
import { getEventNameTopics } from './logs';
|
||||
|
||||
@ -21,9 +21,6 @@ const TEST_DATA = [
|
||||
|
||||
it('get event name topics', async () => {
|
||||
const testPromises = TEST_DATA.map(async ({ name, output }) => {
|
||||
const Contract = await ethers.getContractFactory(name);
|
||||
const contract = await Contract.deploy();
|
||||
await contract.deployed();
|
||||
const { abi } = await artifacts.readArtifact(name);
|
||||
|
||||
const eventNameTopics = getEventNameTopics(abi);
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user