You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
498 B
14 lines
498 B
10 months ago
|
const { createProvider } = require("hardhat/internal/core/providers/construction");
|
||
|
const { resolveConfig } = require("hardhat/internal/core/config/config-resolution");
|
||
|
const { HARDHAT_NETWORK_NAME } = require("hardhat/plugins")
|
||
|
|
||
|
// Creates a shared, minimal HH provider for use in the unit tests
|
||
|
exports.mochaHooks = {
|
||
|
beforeAll: async function() {
|
||
|
const config = await resolveConfig("./", {});
|
||
|
this.provider = await createProvider(
|
||
|
config,
|
||
|
HARDHAT_NETWORK_NAME
|
||
|
);
|
||
|
}
|
||
|
};
|