We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78d979d commit 2b8a1ffCopy full SHA for 2b8a1ff
rollup.config.js
@@ -17,7 +17,8 @@ const config = {
17
file: './mocha.js',
18
format: 'umd',
19
sourcemap: true,
20
- name: 'mocha'
+ name: 'mocha',
21
+ footer: 'window.Mocha = window.mocha.Mocha;'
22
},
23
plugins: [
24
json(),
test/browser-specific/esm.spec.mjs
@@ -3,3 +3,7 @@ import './fixtures/esm.fixture.mjs';
3
it('should register a global if it did not fail', function() {
4
expect(window.MOCHA_IS_OK, 'to be ok');
5
});
6
+
7
+it('should has global Mocha', function() {
8
+ expect(window.Mocha, 'not to be', undefined);
9
+});
0 commit comments