Skip to content

Commit 67ae8df

Browse files
committed
Refresh v3 in-effect harness examples
1 parent 556f60e commit 67ae8df

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
no codefixes
1+
globalFetchInEffect_skipNextLine from 198 to 203
2+
globalFetchInEffect_skipFile from 198 to 203
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
// no diagnostics
1+
fetch
2+
6:37 - 6:42 | 0 | This Effect code calls the global `fetch` function, HTTP requests in Effect code are represented through `HttpClient` from `@effect/platform`. effect(globalFetchInEffect)

packages/harness-effect-v3/examples/diagnostics/preferSchemaOverJson.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export const nestedFunctionInGen = Effect.gen(function*() {
5757

5858
// Should NOT trigger - JSON.parse not as direct expression in Effect.try
5959
export const notDirectExpression = Effect.try(() => {
60-
const parsed = JSON.parse("{\"indirect\":true}")
61-
return parsed.indirect
60+
return () => {
61+
const parsed = JSON.parse("{\"indirect\":true}")
62+
return parsed.indirect
63+
}
6264
})

0 commit comments

Comments
 (0)