UNPKG

@nomiclabs/hardhat-waffle

Version:

Hardhat plugin to test smart contracts with Waffle

21 lines 795 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initializeWaffleMatchers = void 0; function initializeWaffleMatchers(projectRoot) { try { // We use the projectRoot to guarantee that we are using the user's // installed version of chai const chaiPath = require.resolve("chai", { paths: [projectRoot], }); const chai = require(chaiPath); // eslint-disable-next-line import/no-extraneous-dependencies const { waffleChai } = require("@ethereum-waffle/chai"); chai.use(waffleChai); } catch (_a) { // If chai isn't installed we just don't initialize the matchers } } exports.initializeWaffleMatchers = initializeWaffleMatchers; //# sourceMappingURL=matchers.js.map