Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
500 additions
and
29 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
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
16 changes: 16 additions & 0 deletions
16
test/integration/fixtures/options/require/root-hook-defs-a.fixture.js
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,16 @@ | ||
'use strict'; | ||
|
||
exports.mochaHooks = { | ||
beforeAll() { | ||
console.log('beforeAll'); | ||
}, | ||
beforeEach() { | ||
console.log('beforeEach'); | ||
}, | ||
afterAll() { | ||
console.log('afterAll'); | ||
}, | ||
afterEach() { | ||
console.log('afterEach'); | ||
} | ||
}; |
36 changes: 36 additions & 0 deletions
36
test/integration/fixtures/options/require/root-hook-defs-b.fixture.js
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,36 @@ | ||
'use strict'; | ||
|
||
exports.mochaHooks = { | ||
beforeAll: [ | ||
function() { | ||
console.log('beforeAll array 1'); | ||
}, | ||
function() { | ||
console.log('beforeAll array 2'); | ||
} | ||
], | ||
beforeEach: [ | ||
function() { | ||
console.log('beforeEach array 1'); | ||
}, | ||
function() { | ||
console.log('beforeEach array 2'); | ||
} | ||
], | ||
afterAll: [ | ||
function() { | ||
console.log('afterAll array 1'); | ||
}, | ||
function() { | ||
console.log('afterAll array 2'); | ||
} | ||
], | ||
afterEach: [ | ||
function() { | ||
console.log('afterEach array 1'); | ||
}, | ||
function() { | ||
console.log('afterEach array 2'); | ||
} | ||
] | ||
}; |
16 changes: 16 additions & 0 deletions
16
test/integration/fixtures/options/require/root-hook-defs-c.fixture.js
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,16 @@ | ||
'use strict'; | ||
|
||
exports.mochaHooks = async () => ({ | ||
beforeAll() { | ||
console.log('beforeAll'); | ||
}, | ||
beforeEach() { | ||
console.log('beforeEach'); | ||
}, | ||
afterAll() { | ||
console.log('afterAll'); | ||
}, | ||
afterEach() { | ||
console.log('afterEach'); | ||
} | ||
}); |
36 changes: 36 additions & 0 deletions
36
test/integration/fixtures/options/require/root-hook-defs-d.fixture.js
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,36 @@ | ||
'use strict'; | ||
|
||
exports.mochaHooks = async() => ({ | ||
beforeAll: [ | ||
function() { | ||
console.log('beforeAll array 1'); | ||
}, | ||
function() { | ||
console.log('beforeAll array 2'); | ||
} | ||
], | ||
beforeEach: [ | ||
function() { | ||
console.log('beforeEach array 1'); | ||
}, | ||
function() { | ||
console.log('beforeEach array 2'); | ||
} | ||
], | ||
afterAll: [ | ||
function() { | ||
console.log('afterAll array 1'); | ||
}, | ||
function() { | ||
console.log('afterAll array 2'); | ||
} | ||
], | ||
afterEach: [ | ||
function() { | ||
console.log('afterEach array 1'); | ||
}, | ||
function() { | ||
console.log('afterEach array 2'); | ||
} | ||
] | ||
}); |
6 changes: 6 additions & 0 deletions
6
test/integration/fixtures/options/require/root-hook-test-2.fixture.js
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,6 @@ | ||
// run with --require root-hook-defs-a.fixture.js --require | ||
// root-hook-defs-b.fixture.js | ||
|
||
it('should also have some root hooks', function() { | ||
// test | ||
}); |
6 changes: 6 additions & 0 deletions
6
test/integration/fixtures/options/require/root-hook-test.fixture.js
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,6 @@ | ||
// run with --require root-hook-defs-a.fixture.js --require | ||
// root-hook-defs-b.fixture.js | ||
|
||
it('should have some root hooks', function() { | ||
// test | ||
}); |
Oops, something went wrong.