Skip to content

Commit eae4fa0

Browse files
nikkubarmac
authored andcommitted
chore: migrate to chai@6
As suggested in this PR: * explicitly depend on `chai` and `sinon` where needed * wire both together using a `globals.js` file that is imported with the bundle => need to workaround tree-shaking so it is not accidentally optimized away
1 parent ef93fbb commit eae4fa0

File tree

15 files changed

+141
-398
lines changed

15 files changed

+141
-398
lines changed

karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ module.exports = function(karma) {
3737

3838
frameworks: [
3939
'mocha',
40-
'sinon-chai',
4140
'webpack'
4241
],
4342

@@ -79,6 +78,10 @@ module.exports = function(karma) {
7978
mode: 'development',
8079
module: {
8180
rules: [
81+
{
82+
test: /test\/globals\.js$/,
83+
sideEffects: true
84+
},
8285
{
8386
test: /\.(css|bpmn)$/,
8487
type: 'asset/source'

0 commit comments

Comments
 (0)