You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case that a developer wants to pass data to a test file programmatically (not at the command line)
with Mocha, seemingly the only way to do this would be:
functionwrapTheMochaSuiteWithThisFn(data){describe('root suite',function(){describe('child suite',function(){data.forEach(item=>{it('stubbed test case');});});});}if(require.main===module){wrapTheMochaSuiteWithThisFn([]);// if test file is executing directly, run it}module.exports=wrapTheMochaSuiteWithThisFn;
will we have to do the same thing with AVA if we want to pass data / inject data into tests?
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
In the case that a developer wants to pass data to a test file programmatically (not at the command line)
with Mocha, seemingly the only way to do this would be:
will we have to do the same thing with AVA if we want to pass data / inject data into tests?
The text was updated successfully, but these errors were encountered: