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
Not sure if this is the best place for this but does anyone know the best way to read JSON from a file and use that for the expectJSON parameter? I've done a fair bit of reading and it doesn't seem like there is a way to do it without using a synchronous method.
Perhaps a method could be added to the code base as many testing frameworks feature this option?
The text was updated successfully, but these errors were encountered:
Are you using "require(file)" for that? I tried looking through the code but could not really see where you're getting the file from, even though I can see it works!
The problem is that require is not asynchronous, but when I try to use an asyncronous method I don't seem to have anyway of making the Frisby tests wait. Either that, or they don't pick up any tests from within the readFile function.
For example:
fs,readFile(file,etc...)
{
FrisbyTest...
}
The Frisby test never gets picked up. Anyway to get around that?
Not sure if this is the best place for this but does anyone know the best way to read JSON from a file and use that for the expectJSON parameter? I've done a fair bit of reading and it doesn't seem like there is a way to do it without using a synchronous method.
Perhaps a method could be added to the code base as many testing frameworks feature this option?
The text was updated successfully, but these errors were encountered: