mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-09 12:58:06 +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 { expect } from 'chai';
|
||||||
import '@nomiclabs/hardhat-ethers';
|
import '@nomiclabs/hardhat-ethers';
|
||||||
import { artifacts, ethers } from 'hardhat';
|
import { artifacts } from 'hardhat';
|
||||||
|
|
||||||
import { getEventNameTopics } from './logs';
|
import { getEventNameTopics } from './logs';
|
||||||
|
|
||||||
@ -21,9 +21,6 @@ const TEST_DATA = [
|
|||||||
|
|
||||||
it('get event name topics', async () => {
|
it('get event name topics', async () => {
|
||||||
const testPromises = TEST_DATA.map(async ({ name, output }) => {
|
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 { abi } = await artifacts.readArtifact(name);
|
||||||
|
|
||||||
const eventNameTopics = getEventNameTopics(abi);
|
const eventNameTopics = getEventNameTopics(abi);
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user