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
Big apps need specs. We should definitely have a built-in way to add specs so that the user doesn't need to set it up on his/her own.
Acceptance criteria
tests can be run in parallel
puppeteer?
start/stop server in every spec on a random port
e.g. maybe something like:
import{test,Server,Browser,expect}from'huncwot/test'test('user can see the home page',async()=>{constserver=newServer()const{ url }=awaitserver.start()constbrowser=newBrowser()constpage=awaitbrowser.open(url)consthtml=awaitpage.content()expect(html).toContain("Hello, world!")awaitbrowser.close()awaitserver.stop()})
or
import{test,expect}from'huncwot/test'import{visit}from'huncwot/test/feature'test('user can see the home page',async()=>{const{ page }=awaitvisit('/')expect(page).toContain('Hello, world')awaitpage.close()// ?})
The text was updated successfully, but these errors were encountered:
Context
Big apps need specs. We should definitely have a built-in way to add specs so that the user doesn't need to set it up on his/her own.
Acceptance criteria
e.g. maybe something like:
or
The text was updated successfully, but these errors were encountered: