@foundry-rs/hardhat-anvil
Version:
Hardhat plugin for managing Anvil
20 lines • 717 B
JavaScript
;
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);
const { waffleChai } = require("./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