Skip to content

Commit

Permalink
Move zod import to test-prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
diogob committed Nov 15, 2023
1 parent 62c4118 commit f5217fe
Show file tree
Hide file tree
Showing 16 changed files with 151 additions and 59 deletions.
177 changes: 134 additions & 43 deletions deno.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/all.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertEquals,
assertObjectMatch,
} from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { all } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/apply-environment.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals, describe, it } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { applyEnvironment } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/branch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertEquals,
assertObjectMatch,
} from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { branch, pipe, all } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/collect-sequence.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { collectSequence } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/collect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertObjectMatch,
assertEquals,
} from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { collect } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/constructor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
describe,
it,
} from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import {
Expand Down
2 changes: 1 addition & 1 deletion src/first.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { first } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/from-success.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals, assertRejects } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { fromSuccess } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/map-error.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { mapError } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/map.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { map } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/merge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertEquals,
assertObjectMatch,
} from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { merge } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/pipe.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { pipe } from './domain-functions.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/sequence.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, assertEquals } from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { sequence } from './domain-functions.ts'
Expand Down
5 changes: 3 additions & 2 deletions src/test-prelude.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { describe, it } from 'https://deno.land/std@0.198.0/testing/bdd.ts'
export { assertEquals, assertRejects, assertObjectMatch } from 'https://deno.land/std@0.198.0/assert/mod.ts'
export { describe, it } from "https://deno.land/std@0.206.0/testing/bdd.ts"
export { assertEquals, assertRejects, assertObjectMatch } from "https://deno.land/std@0.206.0/assert/mod.ts"
export { z } from "https://deno.land/x/zod@v3.22.4/mod.ts"
2 changes: 1 addition & 1 deletion src/trace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
describe,
it,
} from './test-prelude.ts'
import { z } from 'https://deno.land/x/zod@v3.21.4/mod.ts'
import { z } from './test-prelude.ts'

import { mdf } from './constructor.ts'
import { fromSuccess, trace } from './domain-functions.ts'
Expand Down

0 comments on commit f5217fe

Please sign in to comment.