Skip to content

Commit 5f20b20

Browse files
committed
add failing test
seems like Parameters only picks the first overload of __promisify__
1 parent 12b01ce commit 5f20b20

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/effectify.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ describe.concurrent("effectify (readFile)", () => {
2424
})
2525
)
2626

27-
it.effect("preserves overloads", () =>
27+
it.effect("preserves overloads (1)", () =>
2828
Effect.gen(function* ($) {
2929
const x = yield* $(readFile1(__filename, "utf8"))
3030
assert.match(x.toString(), /^import/)
3131
})
3232
)
3333

34+
it.effect("preserves overloads (2)", () =>
35+
Effect.gen(function* ($) {
36+
const { signal } = new AbortController()
37+
const x = yield* $(readFile1(__filename, { signal }))
38+
assert.match(x.toString(), /^import/)
39+
})
40+
)
41+
3442
it.effect("handles error path", () =>
3543
Effect.gen(function* ($) {
3644
const result = yield* $(

0 commit comments

Comments
 (0)