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
I'm looking at this. Would I need to create multiple test files in the testdata to be able see different outputs for different scenarios? It seems like I would import Spinner into these testdata files, run different options / scenarios, then run those modules via Deno.Command. I just haven't used Deno.Command a lot. I think this would be a first for tests, so that's why I'm checking first.
constcmd=newDeno.Command(Deno.execPath(),{args: ["run",// this is where I'd run a testdata file cli/testdata/spinner_tests/<scenario-1>.ts
...args,],stdout: "piped",stderr: "piped",
...opts,});constprocess=cmd.spawn();constoutput=awaitprocess.output();// assert(outputStuff)
It seems possible to write test cases for this module using
new Deno.Command().spawn()
The text was updated successfully, but these errors were encountered: