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
After a bit of looking around in source I realized I could just manually expose chai's assert api, and that works adequately. It's a little inconvenient to have to do it for every single test, but still preferable to the BDD API that is exposed by default.
Would it make sense to expose assert by default (or provide an option in the gui - assuming one doesn't already exist, as I could find no indication of it in the docs) for those of us who prefer it?
I didn't find any other issues or discussion around it, so I suppose I'm in a weird minority. It nonetheless seems (from my very limited exploration) like a trivial amount of work to add that functionality. Aside from just personal preference, using the assert style keeps my insomnia tests in line with the test suites of backends in (for example) go or rust, whose built in test facilities do not utilize BDD.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After a bit of looking around in source I realized I could just manually expose chai's assert api, and that works adequately. It's a little inconvenient to have to do it for every single test, but still preferable to the BDD API that is exposed by default.
eg
Would it make sense to expose
assert
by default (or provide an option in the gui - assuming one doesn't already exist, as I could find no indication of it in the docs) for those of us who prefer it?I didn't find any other issues or discussion around it, so I suppose I'm in a weird minority. It nonetheless seems (from my very limited exploration) like a trivial amount of work to add that functionality. Aside from just personal preference, using the
assert
style keeps my insomnia tests in line with the test suites of backends in (for example) go or rust, whose built in test facilities do not utilize BDD.Beta Was this translation helpful? Give feedback.
All reactions