From 9c12e9ed57ed2ff082c31f76cfe9ff51e1698ca6 Mon Sep 17 00:00:00 2001 From: Tomer Aberbach Date: Thu, 26 Dec 2024 15:44:54 -0500 Subject: [PATCH] feat: shorten import (#86) --- examples/openai-arbitraries.js | 2 +- src/components.ts | 2 +- test/snapshots/alias-spread/arbitraries.js | 2 +- test/snapshots/array/arbitraries.js | 2 +- test/snapshots/boolean/arbitraries.js | 2 +- test/snapshots/bytes/arbitraries.js | 2 +- test/snapshots/comments/arbitraries.js | 2 +- test/snapshots/decimal/arbitraries.js | 2 +- test/snapshots/decimal128/arbitraries.js | 2 +- test/snapshots/dictionary/arbitraries.js | 2 +- test/snapshots/empty/arbitraries.js | 2 +- test/snapshots/enum/arbitraries.js | 2 +- test/snapshots/file-model/arbitraries.js | 2 +- test/snapshots/file-namespace/arbitraries.js | 2 +- test/snapshots/float32/arbitraries.js | 2 +- test/snapshots/float64/arbitraries.js | 2 +- test/snapshots/int16/arbitraries.js | 2 +- test/snapshots/int32/arbitraries.js | 2 +- test/snapshots/int64/arbitraries.js | 2 +- test/snapshots/int8/arbitraries.js | 2 +- test/snapshots/integer/arbitraries.js | 2 +- test/snapshots/model-and-namespace/arbitraries.js | 2 +- test/snapshots/model-default-property/arbitraries.js | 2 +- test/snapshots/model-in-namespace/arbitraries.js | 2 +- test/snapshots/model-intersection/arbitraries.js | 2 +- test/snapshots/model-is/arbitraries.js | 2 +- test/snapshots/model-optional-property/arbitraries.js | 2 +- test/snapshots/model-property-reference/arbitraries.js | 2 +- test/snapshots/model-spread/arbitraries.js | 2 +- test/snapshots/model/arbitraries.js | 2 +- test/snapshots/mutually-recursive-models/arbitraries.js | 2 +- test/snapshots/namespace-in-file-namespace/arbitraries.js | 2 +- test/snapshots/namespace/arbitraries.js | 2 +- .../nested-namespace-mutually-recursive-models/arbitraries.js | 2 +- test/snapshots/nested-namespace-recursive-model/arbitraries.js | 2 +- test/snapshots/never-sharing/arbitraries.js | 2 +- test/snapshots/never/arbitraries.js | 2 +- test/snapshots/null/arbitraries.js | 2 +- test/snapshots/numeric-sharing/arbitraries.js | 2 +- test/snapshots/numeric/arbitraries.js | 2 +- test/snapshots/object/arbitraries.js | 2 +- test/snapshots/recursive-model/arbitraries.js | 2 +- test/snapshots/recursive-models-topological-sort/arbitraries.js | 2 +- test/snapshots/safeint/arbitraries.js | 2 +- test/snapshots/skipped/arbitraries.js | 2 +- test/snapshots/string/arbitraries.js | 2 +- test/snapshots/super-mutually-recursive-models/arbitraries.js | 2 +- test/snapshots/templates/arbitraries.js | 2 +- test/snapshots/tuple/arbitraries.js | 2 +- test/snapshots/union/arbitraries.js | 2 +- test/snapshots/unknown/arbitraries.js | 2 +- test/snapshots/url/arbitraries.js | 2 +- test/snapshots/void/arbitraries.js | 2 +- 53 files changed, 53 insertions(+), 53 deletions(-) diff --git a/examples/openai-arbitraries.js b/examples/openai-arbitraries.js index 1b6a2ae..71afa21 100644 --- a/examples/openai-arbitraries.js +++ b/examples/openai-arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const ImagesN = fc.integer({ min: 1, diff --git a/src/components.ts b/src/components.ts index 9249548..f916f2d 100644 --- a/src/components.ts +++ b/src/components.ts @@ -56,7 +56,7 @@ const ArbitraryFile = ({ ay.Output().children(ts.SourceFile({ path: `arbitraries.js` }).code` // Generated from TypeSpec using \`typespec-fast-check\` - import * as fc from "fast-check"; + import fc from "fast-check"; ${GlobalArbitraryNamespace({ namespace, sharedArbitraries })} `) diff --git a/test/snapshots/alias-spread/arbitraries.js b/test/snapshots/alias-spread/arbitraries.js index 8a1d857..7a96788 100644 --- a/test/snapshots/alias-spread/arbitraries.js +++ b/test/snapshots/alias-spread/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Model1 = fc.record({ property1: fc.integer(), diff --git a/test/snapshots/array/arbitraries.js b/test/snapshots/array/arbitraries.js index 4089b17..6b5b4c8 100644 --- a/test/snapshots/array/arbitraries.js +++ b/test/snapshots/array/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Array = fc.array(fc.string()); diff --git a/test/snapshots/boolean/arbitraries.js b/test/snapshots/boolean/arbitraries.js index ac91c98..fce8cd8 100644 --- a/test/snapshots/boolean/arbitraries.js +++ b/test/snapshots/boolean/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Boolean = fc.boolean(); diff --git a/test/snapshots/bytes/arbitraries.js b/test/snapshots/bytes/arbitraries.js index fbfdfe4..500d525 100644 --- a/test/snapshots/bytes/arbitraries.js +++ b/test/snapshots/bytes/arbitraries.js @@ -1,5 +1,5 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Bytes = fc.uint8Array(); diff --git a/test/snapshots/comments/arbitraries.js b/test/snapshots/comments/arbitraries.js index 9cefd26..a2028ff 100644 --- a/test/snapshots/comments/arbitraries.js +++ b/test/snapshots/comments/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ MultiLineRecursiveModel: fc.record( diff --git a/test/snapshots/decimal/arbitraries.js b/test/snapshots/decimal/arbitraries.js index 9531169..1f61b6d 100644 --- a/test/snapshots/decimal/arbitraries.js +++ b/test/snapshots/decimal/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Decimal = fc.double(); diff --git a/test/snapshots/decimal128/arbitraries.js b/test/snapshots/decimal128/arbitraries.js index c7cc99b..4361b7f 100644 --- a/test/snapshots/decimal128/arbitraries.js +++ b/test/snapshots/decimal128/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Decimal128 = fc.double(); diff --git a/test/snapshots/dictionary/arbitraries.js b/test/snapshots/dictionary/arbitraries.js index 0decffa..fa7d6f8 100644 --- a/test/snapshots/dictionary/arbitraries.js +++ b/test/snapshots/dictionary/arbitraries.js @@ -1,5 +1,5 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Dictionary = fc.dictionary(fc.string(), fc.integer()); diff --git a/test/snapshots/empty/arbitraries.js b/test/snapshots/empty/arbitraries.js index c387828..12c74c3 100644 --- a/test/snapshots/empty/arbitraries.js +++ b/test/snapshots/empty/arbitraries.js @@ -1,3 +1,3 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; diff --git a/test/snapshots/enum/arbitraries.js b/test/snapshots/enum/arbitraries.js index b0fad49..eb11b31 100644 --- a/test/snapshots/enum/arbitraries.js +++ b/test/snapshots/enum/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const SingleValueEnum = fc.constant("A"); diff --git a/test/snapshots/file-model/arbitraries.js b/test/snapshots/file-model/arbitraries.js index 60ab6b8..f268c0a 100644 --- a/test/snapshots/file-model/arbitraries.js +++ b/test/snapshots/file-model/arbitraries.js @@ -1,5 +1,5 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({}); diff --git a/test/snapshots/file-namespace/arbitraries.js b/test/snapshots/file-namespace/arbitraries.js index 3d0c2c6..8d0f58b 100644 --- a/test/snapshots/file-namespace/arbitraries.js +++ b/test/snapshots/file-namespace/arbitraries.js @@ -1,5 +1,5 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Namespace = {}; diff --git a/test/snapshots/float32/arbitraries.js b/test/snapshots/float32/arbitraries.js index f5c0fe1..2554749 100644 --- a/test/snapshots/float32/arbitraries.js +++ b/test/snapshots/float32/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Float32 = fc.float(); diff --git a/test/snapshots/float64/arbitraries.js b/test/snapshots/float64/arbitraries.js index 0cf7b10..6ebb305 100644 --- a/test/snapshots/float64/arbitraries.js +++ b/test/snapshots/float64/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Float64 = fc.double(); diff --git a/test/snapshots/int16/arbitraries.js b/test/snapshots/int16/arbitraries.js index 9ab1fdf..ab7f941 100644 --- a/test/snapshots/int16/arbitraries.js +++ b/test/snapshots/int16/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const int16 = fc.integer({ min: -32768, diff --git a/test/snapshots/int32/arbitraries.js b/test/snapshots/int32/arbitraries.js index de8caa2..566ddc6 100644 --- a/test/snapshots/int32/arbitraries.js +++ b/test/snapshots/int32/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Int32 = fc.integer(); diff --git a/test/snapshots/int64/arbitraries.js b/test/snapshots/int64/arbitraries.js index 00482ff..b27cb6f 100644 --- a/test/snapshots/int64/arbitraries.js +++ b/test/snapshots/int64/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Int64 = fc.bigInt({ min: -9223372036854775808n, diff --git a/test/snapshots/int8/arbitraries.js b/test/snapshots/int8/arbitraries.js index 70451a1..c03ffd1 100644 --- a/test/snapshots/int8/arbitraries.js +++ b/test/snapshots/int8/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const int8 = fc.integer({ min: -128, diff --git a/test/snapshots/integer/arbitraries.js b/test/snapshots/integer/arbitraries.js index 13f472b..0a2a033 100644 --- a/test/snapshots/integer/arbitraries.js +++ b/test/snapshots/integer/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Integer = fc.bigInt(); diff --git a/test/snapshots/model-and-namespace/arbitraries.js b/test/snapshots/model-and-namespace/arbitraries.js index 04c15f3..50fdc2f 100644 --- a/test/snapshots/model-and-namespace/arbitraries.js +++ b/test/snapshots/model-and-namespace/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Namespace = {}; diff --git a/test/snapshots/model-default-property/arbitraries.js b/test/snapshots/model-default-property/arbitraries.js index c6dfc79..a309fbe 100644 --- a/test/snapshots/model-default-property/arbitraries.js +++ b/test/snapshots/model-default-property/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Scalar = fc.integer(); diff --git a/test/snapshots/model-in-namespace/arbitraries.js b/test/snapshots/model-in-namespace/arbitraries.js index 322ad3e..7b1b563 100644 --- a/test/snapshots/model-in-namespace/arbitraries.js +++ b/test/snapshots/model-in-namespace/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Namespace = { $Model: fc.record({}), diff --git a/test/snapshots/model-intersection/arbitraries.js b/test/snapshots/model-intersection/arbitraries.js index 9dc338d..a122c96 100644 --- a/test/snapshots/model-intersection/arbitraries.js +++ b/test/snapshots/model-intersection/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Model1 = fc.record({ a: fc.integer(), diff --git a/test/snapshots/model-is/arbitraries.js b/test/snapshots/model-is/arbitraries.js index 5b0fde3..fa4de12 100644 --- a/test/snapshots/model-is/arbitraries.js +++ b/test/snapshots/model-is/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Model1 = fc.record({ a: fc.integer(), diff --git a/test/snapshots/model-optional-property/arbitraries.js b/test/snapshots/model-optional-property/arbitraries.js index 96ecac2..645f023 100644 --- a/test/snapshots/model-optional-property/arbitraries.js +++ b/test/snapshots/model-optional-property/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const int64 = fc.bigInt({ min: -9223372036854775808n, diff --git a/test/snapshots/model-property-reference/arbitraries.js b/test/snapshots/model-property-reference/arbitraries.js index de9ef61..9338b04 100644 --- a/test/snapshots/model-property-reference/arbitraries.js +++ b/test/snapshots/model-property-reference/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Model1 = fc.record({ property: fc.string(), diff --git a/test/snapshots/model-spread/arbitraries.js b/test/snapshots/model-spread/arbitraries.js index d3ef551..4996227 100644 --- a/test/snapshots/model-spread/arbitraries.js +++ b/test/snapshots/model-spread/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Model1 = fc.record({ a: fc.integer(), diff --git a/test/snapshots/model/arbitraries.js b/test/snapshots/model/arbitraries.js index da375ac..4ff6666 100644 --- a/test/snapshots/model/arbitraries.js +++ b/test/snapshots/model/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ a: fc.integer(), diff --git a/test/snapshots/mutually-recursive-models/arbitraries.js b/test/snapshots/mutually-recursive-models/arbitraries.js index 1f128ec..b3e129f 100644 --- a/test/snapshots/mutually-recursive-models/arbitraries.js +++ b/test/snapshots/mutually-recursive-models/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ StringNode: fc.record( diff --git a/test/snapshots/namespace-in-file-namespace/arbitraries.js b/test/snapshots/namespace-in-file-namespace/arbitraries.js index 90d217b..6ccb525 100644 --- a/test/snapshots/namespace-in-file-namespace/arbitraries.js +++ b/test/snapshots/namespace-in-file-namespace/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Namespace1 = { Namespace2: {}, diff --git a/test/snapshots/namespace/arbitraries.js b/test/snapshots/namespace/arbitraries.js index 3d0c2c6..8d0f58b 100644 --- a/test/snapshots/namespace/arbitraries.js +++ b/test/snapshots/namespace/arbitraries.js @@ -1,5 +1,5 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Namespace = {}; diff --git a/test/snapshots/nested-namespace-mutually-recursive-models/arbitraries.js b/test/snapshots/nested-namespace-mutually-recursive-models/arbitraries.js index d82d883..1831e6b 100644 --- a/test/snapshots/nested-namespace-mutually-recursive-models/arbitraries.js +++ b/test/snapshots/nested-namespace-mutually-recursive-models/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ StringNode: fc.record( diff --git a/test/snapshots/nested-namespace-recursive-model/arbitraries.js b/test/snapshots/nested-namespace-recursive-model/arbitraries.js index 022ee0b..5ac8d48 100644 --- a/test/snapshots/nested-namespace-recursive-model/arbitraries.js +++ b/test/snapshots/nested-namespace-recursive-model/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ Node: fc.record( diff --git a/test/snapshots/never-sharing/arbitraries.js b/test/snapshots/never-sharing/arbitraries.js index 48f02bb..7d13e31 100644 --- a/test/snapshots/never-sharing/arbitraries.js +++ b/test/snapshots/never-sharing/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const never = fc.constant(null).map(() => { throw new Error("never"); diff --git a/test/snapshots/never/arbitraries.js b/test/snapshots/never/arbitraries.js index b2078f8..f05e41f 100644 --- a/test/snapshots/never/arbitraries.js +++ b/test/snapshots/never/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ property: fc.constant(null).map(() => { diff --git a/test/snapshots/null/arbitraries.js b/test/snapshots/null/arbitraries.js index 99495e1..43e0c2b 100644 --- a/test/snapshots/null/arbitraries.js +++ b/test/snapshots/null/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ property1: fc.constant(null), diff --git a/test/snapshots/numeric-sharing/arbitraries.js b/test/snapshots/numeric-sharing/arbitraries.js index 7d5714b..6131996 100644 --- a/test/snapshots/numeric-sharing/arbitraries.js +++ b/test/snapshots/numeric-sharing/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const int64 = fc.bigInt({ min: -9223372036854775808n, diff --git a/test/snapshots/numeric/arbitraries.js b/test/snapshots/numeric/arbitraries.js index c624417..5d1c68a 100644 --- a/test/snapshots/numeric/arbitraries.js +++ b/test/snapshots/numeric/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Numeric = fc.double(); diff --git a/test/snapshots/object/arbitraries.js b/test/snapshots/object/arbitraries.js index 0399a8b..62493cc 100644 --- a/test/snapshots/object/arbitraries.js +++ b/test/snapshots/object/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ a: fc.record({ diff --git a/test/snapshots/recursive-model/arbitraries.js b/test/snapshots/recursive-model/arbitraries.js index 7d3563c..61ab21f 100644 --- a/test/snapshots/recursive-model/arbitraries.js +++ b/test/snapshots/recursive-model/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ Node: fc.record( diff --git a/test/snapshots/recursive-models-topological-sort/arbitraries.js b/test/snapshots/recursive-models-topological-sort/arbitraries.js index b6b36a6..da51235 100644 --- a/test/snapshots/recursive-models-topological-sort/arbitraries.js +++ b/test/snapshots/recursive-models-topological-sort/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ StringNode: fc.record( diff --git a/test/snapshots/safeint/arbitraries.js b/test/snapshots/safeint/arbitraries.js index 1500c5b..4ba3cef 100644 --- a/test/snapshots/safeint/arbitraries.js +++ b/test/snapshots/safeint/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const SafeInt = fc.maxSafeInteger(); diff --git a/test/snapshots/skipped/arbitraries.js b/test/snapshots/skipped/arbitraries.js index c387828..12c74c3 100644 --- a/test/snapshots/skipped/arbitraries.js +++ b/test/snapshots/skipped/arbitraries.js @@ -1,3 +1,3 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; diff --git a/test/snapshots/string/arbitraries.js b/test/snapshots/string/arbitraries.js index 27df95a..3c9a96e 100644 --- a/test/snapshots/string/arbitraries.js +++ b/test/snapshots/string/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const String = fc.string(); diff --git a/test/snapshots/super-mutually-recursive-models/arbitraries.js b/test/snapshots/super-mutually-recursive-models/arbitraries.js index e4027f4..0937fbb 100644 --- a/test/snapshots/super-mutually-recursive-models/arbitraries.js +++ b/test/snapshots/super-mutually-recursive-models/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; const group = fc.letrec(tie => ({ Tree: fc.record( diff --git a/test/snapshots/templates/arbitraries.js b/test/snapshots/templates/arbitraries.js index 872e805..f7a00f1 100644 --- a/test/snapshots/templates/arbitraries.js +++ b/test/snapshots/templates/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const TemplateUnion = (a, b) => fc.oneof( diff --git a/test/snapshots/tuple/arbitraries.js b/test/snapshots/tuple/arbitraries.js index a6be1e1..498ad52 100644 --- a/test/snapshots/tuple/arbitraries.js +++ b/test/snapshots/tuple/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ property: fc.tuple( diff --git a/test/snapshots/union/arbitraries.js b/test/snapshots/union/arbitraries.js index 6d3b97a..fdfb27f 100644 --- a/test/snapshots/union/arbitraries.js +++ b/test/snapshots/union/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const SimpleUnion = fc.oneof( fc.string(), diff --git a/test/snapshots/unknown/arbitraries.js b/test/snapshots/unknown/arbitraries.js index e5ae45d..e6aa059 100644 --- a/test/snapshots/unknown/arbitraries.js +++ b/test/snapshots/unknown/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ property: fc.anything(), diff --git a/test/snapshots/url/arbitraries.js b/test/snapshots/url/arbitraries.js index 85f9b5d..329cf17 100644 --- a/test/snapshots/url/arbitraries.js +++ b/test/snapshots/url/arbitraries.js @@ -1,5 +1,5 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const Url = fc.webUrl(); diff --git a/test/snapshots/void/arbitraries.js b/test/snapshots/void/arbitraries.js index df4fcab..aa05826 100644 --- a/test/snapshots/void/arbitraries.js +++ b/test/snapshots/void/arbitraries.js @@ -1,6 +1,6 @@ // Generated from TypeSpec using `typespec-fast-check` -import * as fc from "fast-check"; +import fc from "fast-check"; export const $Model = fc.record({ property: fc.constant(undefined),