File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- import { assert , layer } from "@effect/vitest" ;
1+ import { assert , expect , layer } from "@effect/vitest" ;
22import { Effect } from "effect" ;
33import { Playwright } from "effect-playwright" ;
44import { chromium } from "playwright-core" ;
@@ -59,16 +59,14 @@ layer(Playwright.layer)("Playwright", (it) => {
5959 const result = yield * playwright
6060 . launchScoped ( chromium , {
6161 timeout : 1 ,
62- executablePath : "sleep" ,
63- args : [ "10" ] ,
62+ executablePath : "/bin/cat" ,
6463 } )
6564 . pipe ( Effect . flip ) ;
6665 assert (
6766 result . _tag === "PlaywrightError" ,
6867 "Expected failure with timeout 0" ,
6968 ) ;
70-
71- assert ( result . reason === "Timeout" , "Expected timeout" ) ;
69+ expect ( result . reason ) . toBe ( "Timeout" ) ;
7270 } ) ,
7371 ) ;
7472} ) ;
You can’t perform that action at this time.
0 commit comments