Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Allow to override chai from the config #5974

Merged
merged 2 commits into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/test/src/Test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,11 @@ export const Test = {
global.interfaceAdapter = interfaceAdapter;
// @ts-ignore
global.web3 = web3;
const resolvedChai = config.chai?.package ?? chai;
// @ts-ignore
global.assert = chai.assert;
global.assert = resolvedChai.assert;
// @ts-ignore
global.expect = chai.expect;
global.expect = resolvedChai.expect;
// @ts-ignore
global.artifacts = {
require: (importPath: string) => {
Expand Down