-
-
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 #4559 by making functions returned by entrypoints lazy
- Loading branch information
Showing
9 changed files
with
28,390 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
'use strict'; | ||
const Mocha = require('../../index.js'); | ||
|
||
exports.describe = Mocha.describe; | ||
exports.context = Mocha.describe; | ||
exports.it = Mocha.it; | ||
exports.specify = Mocha.it; | ||
exports.xit = Mocha.xit; | ||
exports.before = Mocha.before; | ||
exports.after = Mocha.after; | ||
exports.beforeEach = Mocha.beforeEach; | ||
exports.afterEach = Mocha.afterEach; | ||
exports.describe = (...args) => Mocha.describe(...args); | ||
exports.describe.only = (...args) => Mocha.describe.only(...args); | ||
exports.describe.skip = (...args) => Mocha.describe.skip(...args); | ||
exports.context = (...args) => Mocha.describe(...args); | ||
exports.context.only = (...args) => Mocha.describe.only(...args); | ||
exports.context.skip = (...args) => Mocha.describe.skip(...args); | ||
exports.it = (...args) => Mocha.it(...args); | ||
exports.it.only = (...args) => Mocha.it.only(...args); | ||
exports.it.skip = (...args) => Mocha.it.skip(...args); | ||
exports.specify = (...args) => Mocha.it(...args); | ||
exports.specify.only = (...args) => Mocha.it.only(...args); | ||
exports.specify.skip = (...args) => Mocha.it.skip(...args); | ||
exports.xit = (...args) => Mocha.xit(...args); | ||
exports.before = (...args) => Mocha.before(...args); | ||
exports.after = (...args) => Mocha.after(...args); | ||
exports.beforeEach = (...args) => Mocha.beforeEach(...args); | ||
exports.afterEach = (...args) => Mocha.afterEach(...args); |
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import Mocha from '../../index.js'; | ||
|
||
export const describe = Mocha.describe; | ||
export const context = Mocha.describe; | ||
export const it = Mocha.it; | ||
export const specify = Mocha.it; | ||
export const xit = Mocha.xit; | ||
export const before = Mocha.before; | ||
export const after = Mocha.after; | ||
export const beforeEach = Mocha.beforeEach; | ||
export const afterEach = Mocha.afterEach; | ||
export const describe = (...args) => Mocha.describe(...args); | ||
describe.only = (...args) => Mocha.describe.only(...args); | ||
describe.skip = (...args) => Mocha.describe.skip(...args); | ||
export const context = (...args) => Mocha.describe(...args); | ||
export const it = (...args) => Mocha.it(...args); | ||
it.only = (...args) => Mocha.it.only(...args); | ||
it.skip = (...args) => Mocha.it.skip(...args); | ||
export const specify = (...args) => Mocha.it(...args); | ||
specify.only = (...args) => Mocha.it.only(...args); | ||
specify.skip = (...args) => Mocha.it.skip(...args); | ||
export const xit = (...args) => Mocha.xit(...args); | ||
export const before = (...args) => Mocha.before(...args); | ||
export const after = (...args) => Mocha.after(...args); | ||
export const beforeEach = (...args) => Mocha.beforeEach(...args); | ||
export const afterEach = (...args) => Mocha.afterEach(...args); |
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
'use strict'; | ||
const Mocha = require('../../index.js'); | ||
|
||
exports.before = Mocha.before; | ||
exports.after = Mocha.after; | ||
exports.beforeEach = Mocha.beforeEach; | ||
exports.afterEach = Mocha.afterEach; | ||
exports.suite = Mocha.suite; | ||
exports.test = Mocha.test; | ||
exports.suite = (...args) => Mocha.suite(...args); | ||
exports.suite.only = (...args) => Mocha.suite.only(...args); | ||
exports.suite.skip = (...args) => Mocha.suite.skip(...args); | ||
exports.test = (...args) => Mocha.test(...args); | ||
exports.test.only = (...args) => Mocha.test.only(...args); | ||
exports.test.skip = (...args) => Mocha.test.skip(...args); | ||
exports.before = (...args) => Mocha.before(...args); | ||
exports.after = (...args) => Mocha.after(...args); | ||
exports.beforeEach = (...args) => Mocha.beforeEach(...args); | ||
exports.afterEach = (...args) => Mocha.afterEach(...args); |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import Mocha from '../../index.js'; | ||
|
||
export const before = Mocha.before; | ||
export const after = Mocha.after; | ||
export const beforeEach = Mocha.beforeEach; | ||
export const afterEach = Mocha.afterEach; | ||
export const suite = Mocha.suite; | ||
export const test = Mocha.test; | ||
export const suite = (...args) => Mocha.suite(...args); | ||
suite.only = (...args) => Mocha.suite.only(...args); | ||
suite.skip = (...args) => Mocha.suite.skip(...args); | ||
export const test = (...args) => Mocha.test(...args); | ||
test.only = (...args) => Mocha.it.only(...args); | ||
test.skip = (...args) => Mocha.it.skip(...args); | ||
export const before = (...args) => Mocha.before(...args); | ||
export const after = (...args) => Mocha.after(...args); | ||
export const beforeEach = (...args) => Mocha.beforeEach(...args); | ||
export const afterEach = (...args) => Mocha.afterEach(...args); |
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
'use strict'; | ||
const Mocha = require('../../index.js'); | ||
|
||
exports.suite = Mocha.suite; | ||
exports.test = Mocha.test; | ||
exports.suiteSetup = Mocha.suiteSetup; | ||
exports.suiteTeardown = Mocha.suiteTeardown; | ||
exports.setup = Mocha.setup; | ||
exports.teardown = Mocha.teardown; | ||
exports.suite = (...args) => Mocha.suite(...args); | ||
exports.suite.only = (...args) => Mocha.suite.only(...args); | ||
exports.suite.skip = (...args) => Mocha.suite.skip(...args); | ||
exports.test = (...args) => Mocha.test(...args); | ||
exports.test.only = (...args) => Mocha.test.only(...args); | ||
exports.test.skip = (...args) => Mocha.test.skip(...args); | ||
exports.suiteSetup = (...args) => Mocha.suiteSetup(...args); | ||
exports.suiteTeardown = (...args) => Mocha.suiteTeardown(...args); | ||
exports.setup = (...args) => Mocha.setup(...args); | ||
exports.teardown = (...args) => Mocha.teardown(...args); |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import Mocha from '../../index.js'; | ||
|
||
export const suite = Mocha.suite; | ||
export const test = Mocha.test; | ||
export const suiteSetup = Mocha.suiteSetup; | ||
export const suiteTeardown = Mocha.suiteTeardown; | ||
export const setup = Mocha.setup; | ||
export const teardown = Mocha.teardown; | ||
export const suite = (...args) => Mocha.suite(...args); | ||
suite.only = (...args) => Mocha.suite.only(...args); | ||
suite.skip = (...args) => Mocha.suite.skip(...args); | ||
export const test = (...args) => Mocha.test(...args); | ||
test.only = (...args) => Mocha.it.only(...args); | ||
test.skip = (...args) => Mocha.it.skip(...args); | ||
export const suiteSetup = (...args) => Mocha.suiteSetup(...args); | ||
export const suiteTeardown = (...args) => Mocha.suiteTeardown(...args); | ||
export const setup = (...args) => Mocha.setup(...args); | ||
export const teardown = (...args) => Mocha.teardown(...args); |
Oops, something went wrong.