-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix missing index.mjs; use better smoke tests
- Loading branch information
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
// This test ensures Mocha's dependencies are properly in place, | ||
// and is intended to be run after an `npm install --production` in a clean | ||
// working copy. It helps avoid publishing Mocha with `dependencies` | ||
// in `devDependencies` or otherwise in the wrong place. | ||
// It does not ensure that all files are present in the published package! | ||
|
||
var assert = require('assert'); | ||
var mocha = require('mocha'); | ||
var describe = mocha.describe; | ||
var it = mocha.it; | ||
|
||
describe('a production installation of Mocha via CJS', function() { | ||
it('should be able to execute a test', function() { | ||
assert.ok(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This test ensures Mocha's dependencies are properly in place, | ||
// and is intended to be run after an `npm install --production` in a clean | ||
// working copy. It helps avoid publishing Mocha with `dependencies` | ||
// in `devDependencies` or otherwise in the wrong place. | ||
// It does not ensure that all files are present in the published package! | ||
|
||
import assert from 'assert'; | ||
import {describe, it} from 'mocha'; | ||
|
||
describe('a production installation of Mocha via ESM', function() { | ||
it('should be able to execute a test', function() { | ||
assert.ok(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
// This test ensures Mocha's dependencies are properly in place, | ||
// and is intended to be run after an `npm install --production` in a clean | ||
// working copy. It helps avoid publishing Mocha with `dependencies` | ||
// in `devDependencies` or otherwise in the wrong place. | ||
// It does not ensure that all files are present in the published package! | ||
|
||
var assert = require('assert'); | ||
|
||
describe('a production installation of Mocha via globals', function() { | ||
it('should be able to execute a test', function() { | ||
assert.ok(true); | ||
}); | ||
}); |