mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-02 03:15:52 +08:00
fix bundle tests (#273)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
import * as Config from "#dist/effect/config/Config"
|
||||
import * as Effect from "#dist/effect/Effect"
|
||||
|
||||
Effect.runFork(Config.String("ENV"))
|
||||
Effect.runFork(Config.String("ENV").asEffect())
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import * as Duration from "#dist/effect/Duration"
|
||||
import * as Effect from "#dist/effect/Effect"
|
||||
import * as Result from "#dist/effect/Result"
|
||||
import * as Schema from "#dist/effect/schema/Schema"
|
||||
import * as Transformation from "#dist/effect/schema/Transformation"
|
||||
|
||||
@@ -12,7 +11,7 @@ const schema = Schema.String.pipe(Schema.decodeTo(
|
||||
yield* Effect.clockWith((clock) => clock.sleep(Duration.millis(300)))
|
||||
return s
|
||||
}),
|
||||
encode: Result.ok
|
||||
encode: (_) => Effect.succeed(_)
|
||||
})
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user