Skip to content

Commit 4a12ebf

Browse files
Copilotnikku
andcommitted
chore: remove karma-chai and migrate to direct chai imports
Co-authored-by: nikku <[email protected]>
1 parent 106f32c commit 4a12ebf

File tree

5 files changed

+12
-31
lines changed

5 files changed

+12
-31
lines changed

karma.conf.js

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

1616
frameworks: [
1717
'mocha',
18-
'chai',
1918
'webpack'
2019
],
2120

package-lock.json

Lines changed: 7 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"eslint": "^9.14.0",
4141
"eslint-plugin-bpmn-io": "^2.0.2",
4242
"karma": "^6.4.4",
43-
"karma-chai": "^0.1.0",
4443
"karma-chrome-launcher": "^3.2.0",
4544
"karma-firefox-launcher": "^2.1.3",
4645
"karma-mocha": "^2.0.1",

test/globals.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { expect } from 'chai';
2+
3+
global.expect = expect;

test/testBundle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* global require */
22

3+
import './globals';
4+
35
var allTests = require.context('.', true, /(spec|integration).*spec\.js$/);
46

57
allTests.keys().forEach(allTests);

0 commit comments

Comments
 (0)