Skip to content

Commit

Permalink
fix karma setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTGold committed Feb 1, 2024
1 parent 7e3ebfd commit d8be245
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
"mocha/no-exclusive-tests": "error",
"mocha/no-mocha-arrows": "off",
"max-len": ["warn", { "code": 200 }]
},
"globals": {
"expect": "readonly",
"sinon": "readonly"
}
}
7 changes: 7 additions & 0 deletions tests/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
import { should, use, expect } from 'chai';
import sinon from 'sinon';

should();
global.expect = expect;
global.sinon = sinon;

const testsContext = require.context('./e2e', true);
testsContext.keys().forEach(testsContext);

0 comments on commit d8be245

Please sign in to comment.