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
when running simple tests I get the error above.
tests run fine from the command line with Mocha.
I am passing in the data from an async function
describe('load yaml',asyncfunction(){it('from file',asyncfunction(){letqo={query: 'where is my pink pooch'}letitem=newTaggable(qo)letcheckList=awaitloadTestData()letfound=awaititem.findTags(checkList)
Wallaby.js configuration file
module.exports=function(){process.env.NODE_ENV='test'return{name: 'NAP',files: ['classes/**/*.js','models/**/*.js','routes/**/*.js','lib/**/*.js','config/**/*',// also need JSON config settings// 'server.js'],tests: ['test/*.js'],env: {type: 'node',// params: {// env: 'NODE_ENV=devbot'// }},debug: true,testFramework: 'mocha'}}
Code editor or IDE name and version
Visual Studio Code v1.
OS name and version
OSX
The text was updated successfully, but these errors were encountered:
Could you please clone the repo to see if it's working for you, and if it is, please provide the bits we are missing to reproduce the issue.
From the error message it looks like the checkItems passed into the findTags is undefined for some reason. Try adding some console.log(checkItems) or Wallaby live comments to track why the value is not passed correctly.
"Stability" issues (especially when things are working in another testing framework) are generally caused by problems with your wallaby configuration. If you want to give Wallaby another try, if you email us, we can provide you with an extended trial license. If do so and you have problems with stability, we'd be happy to take a look at your configuration for you.
Issue description or question
when running simple tests I get the error above.
tests run fine from the command line with Mocha.
I am passing in the data from an async function
Wallaby.js configuration file
Code editor or IDE name and version
Visual Studio Code v1.
OS name and version
OSX
The text was updated successfully, but these errors were encountered: