I'm new to Mocha. I want to call Test case 2 from a.js file to b.js like import the test case because of same test cases repeatable in the b.js file. Example
File a.js :
describe('Sample a',function(){
it('Test case1',function(done){
console.log('Testing test case1');
});
it('Test case2',function(done){
console.log('Testing test case2');
});
it('Test case3',function(done){
console.log('Testing test case3');
});
});
File b.js:
describe('Sample b',function(){
it('Test case2',function(done){
console.log('Testing test case2');
});
});
Kindly provide the solution for this problem.
Thanks