Workaround for legacy newsletter editor tests after updating chai

Chain newly has to be imported as module and doesn't support CommonJs
[MAILPOET-6008]
This commit is contained in:
Rostislav Wolny
2024-06-12 16:00:24 +02:00
committed by Veljko V
parent ca8f6c64d6
commit 73434e1ef7
3 changed files with 9 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
import * as chai from 'chai';
import sinonChai from 'sinon-chai';
import chaiJq from 'chai-jq';
chai.use(sinonChai);
chai.use(chaiJq);
global.expect = chai.expect;