Skip to content

Commit

Permalink
test: simplify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed Nov 17, 2024
1 parent 388c5b7 commit 9e815d6
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 46 deletions.
6 changes: 3 additions & 3 deletions test/operations/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import { sameValueZero } from 'test/helpers/same-value-zero.js'
import { stringifiableArb } from 'test/helpers/fast-check/anything.js'
import { test } from '../helpers/fast-check/test-prop.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import {
getAsyncIterableArb,
getConcurIterableArb,
getIterableArb,
iterableArb,
nonEmptyIterableArb,
} from '../helpers/fast-check/iterables.js'
} from 'test/helpers/fast-check/iterables.js'
import {
rawOptionalReducerArb,
rawReducerArb,
} from '../helpers/fast-check/reducers.js'
} from 'test/helpers/fast-check/reducers.js'
import {
asAsync,
asConcur,
Expand Down
12 changes: 6 additions & 6 deletions test/operations/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {
asyncIterableArb,
concurIterableArb,
iterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
import withElapsed from '../helpers/with-elapsed.js'
import delay from '../helpers/delay.js'
import { fnArb } from '../helpers/fast-check/fns.js'
import autoAdvance from '../helpers/auto-advance.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import withElapsed from 'test/helpers/with-elapsed.js'
import delay from 'test/helpers/delay.js'
import { fnArb } from 'test/helpers/fast-check/fns.js'
import autoAdvance from 'test/helpers/auto-advance.js'
import {
asAsync,
asConcur,
Expand Down
8 changes: 4 additions & 4 deletions test/operations/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
fnArb,
getAsyncFnArb,
predicateArb,
} from '../helpers/fast-check/fns.js'
} from 'test/helpers/fast-check/fns.js'
import {
asyncIterableArb,
concurIterableArb,
Expand All @@ -16,9 +16,9 @@ import {
nonEmptyConcurIterableArb,
nonEmptyIterableArb,
uniqueConcurIterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
import withElapsed from '../helpers/with-elapsed.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import withElapsed from 'test/helpers/with-elapsed.js'
import {
asAsync,
asConcur,
Expand Down
12 changes: 6 additions & 6 deletions test/operations/generators.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import autoAdvance from '../helpers/auto-advance.js'
import delay from '../helpers/delay.js'
import { fnArb } from '../helpers/fast-check/fns.js'
import autoAdvance from 'test/helpers/auto-advance.js'
import delay from 'test/helpers/delay.js'
import { fnArb } from 'test/helpers/fast-check/fns.js'
import {
nonIntegerDoubleArb,
nonPositiveIntegerArb,
} from '../helpers/fast-check/numbers.js'
} from 'test/helpers/fast-check/numbers.js'
import {
asyncIterableArb,
iterableArb,
nonEmptyAsyncIterableArb,
nonEmptyIterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import {
asAsync,
cycle,
Expand Down
6 changes: 3 additions & 3 deletions test/operations/optionals.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import { asyncFnArb, fnArb } from '../helpers/fast-check/fns.js'
import { asyncFnArb, fnArb } from 'test/helpers/fast-check/fns.js'
import {
asyncIterableArb,
getAsyncIterableArb,
Expand All @@ -9,8 +9,8 @@ import {
iterableArb,
nonEmptyAsyncIterableArb,
nonEmptyIterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import {
asAsync,
asConcur,
Expand Down
6 changes: 3 additions & 3 deletions test/operations/predicates.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import { asyncPredicateArb, predicateArb } from '../helpers/fast-check/fns.js'
import { asyncPredicateArb, predicateArb } from 'test/helpers/fast-check/fns.js'
import {
asyncIterableArb,
concurIterableArb,
iterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import {
all,
allAsync,
Expand Down
8 changes: 4 additions & 4 deletions test/operations/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
asyncAbelianGroupFnArb,
asyncFnArb,
fnArb,
} from '../helpers/fast-check/fns.js'
} from 'test/helpers/fast-check/fns.js'
import {
asyncFunctionReducerArb,
functionReducerArb,
Expand All @@ -20,16 +20,16 @@ import {
rawOptionalReducerWithoutFinishArb,
rawReducerWithFinishArb,
rawReducerWithoutFinishArb,
} from '../helpers/fast-check/reducers.js'
import { test } from '../helpers/fast-check/test-prop.js'
} from 'test/helpers/fast-check/reducers.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import {
asyncIterableArb,
concurIterableArb,
getAsyncIterableArb,
getConcurIterableArb,
iterableArb,
nonEmptyIterableArb,
} from '../helpers/fast-check/iterables.js'
} from 'test/helpers/fast-check/iterables.js'
import {
emptyAsync,
emptyConcur,
Expand Down
8 changes: 4 additions & 4 deletions test/operations/side-effects.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable typescript/no-confusing-void-expression */
import { expect, expectTypeOf } from 'vitest'
import { fc } from '@fast-check/vitest'
import { asyncFnArb, fnArb } from '../helpers/fast-check/fns.js'
import { asyncFnArb, fnArb } from 'test/helpers/fast-check/fns.js'
import {
asyncIterableArb,
concurIterableArb,
Expand All @@ -10,9 +10,9 @@ import {
nonEmptyConcurIterableArb,
nonEmptyIterableArb,
uniqueConcurIterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
import withElapsed from '../helpers/with-elapsed.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import withElapsed from 'test/helpers/with-elapsed.js'
import {
asAsync,
asConcur,
Expand Down
12 changes: 6 additions & 6 deletions test/operations/splices.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import autoAdvance from '../helpers/auto-advance.js'
import { asyncFnArb, fnArb } from '../helpers/fast-check/fns.js'
import autoAdvance from 'test/helpers/auto-advance.js'
import { asyncFnArb, fnArb } from 'test/helpers/fast-check/fns.js'
import {
getIntervalArb,
negativeIntegerArb,
nonIntegerDoubleArb,
nonNegativeIntegerArb,
nonPositiveIntegerArb,
positiveIntegerArb,
} from '../helpers/fast-check/numbers.js'
} from 'test/helpers/fast-check/numbers.js'
import {
asyncIterableArb,
concurIterableArb,
iterableArb,
nonEmptyAsyncIterableArb,
nonEmptyConcurIterableArb,
nonEmptyIterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
import withElapsed from '../helpers/with-elapsed.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import withElapsed from 'test/helpers/with-elapsed.js'
import {
asAsync,
asConcur,
Expand Down
11 changes: 7 additions & 4 deletions test/operations/statistics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import { asyncCompareFnArb, getAsyncFnArb } from '../helpers/fast-check/fns.js'
import {
asyncCompareFnArb,
getAsyncFnArb,
} from 'test/helpers/fast-check/fns.js'
import {
asyncIterableArb,
concurIterableArb,
Expand All @@ -11,9 +14,9 @@ import {
nonEmptyAsyncIterableArb,
nonEmptyConcurIterableArb,
nonEmptyIterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
import withElapsed from '../helpers/with-elapsed.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import withElapsed from 'test/helpers/with-elapsed.js'
import {
asAsync,
asConcur,
Expand Down
10 changes: 7 additions & 3 deletions test/operations/transforms.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import { AsyncBetterator, Betterator } from 'betterator'
import { fc } from '@fast-check/vitest'
import { expect, expectTypeOf } from 'vitest'
import { asyncFnArb, fnArb, getAsyncFnArb } from '../helpers/fast-check/fns.js'
import {
asyncFnArb,
fnArb,
getAsyncFnArb,
} from 'test/helpers/fast-check/fns.js'
import {
asyncIterableArb,
concurIterableArb,
getAsyncIterableArb,
getConcurIterableArb,
getIterableArb,
iterableArb,
} from '../helpers/fast-check/iterables.js'
import { test } from '../helpers/fast-check/test-prop.js'
} from 'test/helpers/fast-check/iterables.js'
import { test } from 'test/helpers/fast-check/test-prop.js'
import {
asAsync,
asConcur,
Expand Down

0 comments on commit 9e815d6

Please sign in to comment.