How to use the Context function from mocha
Find comprehensive JavaScript mocha.Context code examples handpicked from public code repositorys.
GitHub: codeceptjs/CodeceptJS
18 19 20 21 22 23 24 25 26 27
const ast = parser.parse(text); if (!ast.feature) { throw new Error(`No 'Features' available in Gherkin '${file}' provided!`); } const suite = new Suite(ast.feature.name, new Context()); const tags = ast.feature.tags.map(t => t.name); suite.title = `${suite.title} ${tags.join(' ')}`.trim(); suite.tags = tags || []; suite.comment = ast.feature.description;
706
0
106
+ 3 other calls in file
mocha.utils is the most popular function in mocha (4328 examples)