From 1fafde0ff8bc0725b2b370db69763762348c73fb Mon Sep 17 00:00:00 2001 From: Quramy Date: Thu, 5 Dec 2024 22:10:54 +0900 Subject: [PATCH] chore: Update snapshot --- .../field-variation/__generated__/fabbrica/index.ts | 8 ++++---- .../__generated__/fabbrica/index.ts | 4 ++-- .../relations-one-to-many/__generated__/fabbrica/index.ts | 6 +++--- .../relations-one-to-one/__generated__/fabbrica/index.ts | 4 ++-- .../fixtures/simple-model/__generated__/fabbrica/index.ts | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/artifact-testing/fixtures/field-variation/__generated__/fabbrica/index.ts b/packages/artifact-testing/fixtures/field-variation/__generated__/fabbrica/index.ts index 3b7deaf0..80f4237c 100644 --- a/packages/artifact-testing/fixtures/field-variation/__generated__/fabbrica/index.ts +++ b/packages/artifact-testing/fixtures/field-variation/__generated__/fabbrica/index.ts @@ -139,8 +139,8 @@ function defineEnumModelFactoryInternal = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().enumModel.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -280,8 +280,8 @@ function defineComplexIdModelFactoryInternal = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().complexIdModel.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -451,8 +451,8 @@ function defineFieldTypePatternModelFactoryInternal = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().fieldTypePatternModel.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -588,8 +588,8 @@ function defineNoPkModelFactoryInternal = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().noPkModel.create({ data }); await handleAfterCreate(createdData, transientFields); diff --git a/packages/artifact-testing/fixtures/relations-many-to-many/__generated__/fabbrica/index.ts b/packages/artifact-testing/fixtures/relations-many-to-many/__generated__/fabbrica/index.ts index e964b400..525c4d9c 100644 --- a/packages/artifact-testing/fixtures/relations-many-to-many/__generated__/fabbrica/index.ts +++ b/packages/artifact-testing/fixtures/relations-many-to-many/__generated__/fabbrica/index.ts @@ -133,8 +133,8 @@ function definePostFactoryInternal, id: inputData.id }); const create = async (inputData: Partial = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().post.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -274,8 +274,8 @@ function defineCategoryFactoryInternal = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().category.create({ data }); await handleAfterCreate(createdData, transientFields); diff --git a/packages/artifact-testing/fixtures/relations-one-to-many/__generated__/fabbrica/index.ts b/packages/artifact-testing/fixtures/relations-one-to-many/__generated__/fabbrica/index.ts index 8451ecba..a69e4c0f 100644 --- a/packages/artifact-testing/fixtures/relations-one-to-many/__generated__/fabbrica/index.ts +++ b/packages/artifact-testing/fixtures/relations-one-to-many/__generated__/fabbrica/index.ts @@ -154,8 +154,8 @@ function defineUserFactoryInternal, id: inputData.id }); const create = async (inputData: Partial = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().user.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -309,8 +309,8 @@ function definePostFactoryInternal, id: inputData.id }); const create = async (inputData: Partial = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().post.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -476,8 +476,8 @@ function defineReviewFactoryInternal id: inputData.id }); const create = async (inputData: Partial = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().review.create({ data }); await handleAfterCreate(createdData, transientFields); diff --git a/packages/artifact-testing/fixtures/relations-one-to-one/__generated__/fabbrica/index.ts b/packages/artifact-testing/fixtures/relations-one-to-one/__generated__/fabbrica/index.ts index eb3d45e7..4c9aee1b 100644 --- a/packages/artifact-testing/fixtures/relations-one-to-one/__generated__/fabbrica/index.ts +++ b/packages/artifact-testing/fixtures/relations-one-to-one/__generated__/fabbrica/index.ts @@ -146,8 +146,8 @@ function defineUserFactoryInternal, id: inputData.id }); const create = async (inputData: Partial = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().user.create({ data }); await handleAfterCreate(createdData, transientFields); @@ -297,8 +297,8 @@ function defineProfileFactoryInternal = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().profile.create({ data }); await handleAfterCreate(createdData, transientFields); diff --git a/packages/artifact-testing/fixtures/simple-model/__generated__/fabbrica/index.ts b/packages/artifact-testing/fixtures/simple-model/__generated__/fabbrica/index.ts index 55ffa680..40ba6e8f 100644 --- a/packages/artifact-testing/fixtures/simple-model/__generated__/fabbrica/index.ts +++ b/packages/artifact-testing/fixtures/simple-model/__generated__/fabbrica/index.ts @@ -120,8 +120,8 @@ function defineUserFactoryInternal, id: inputData.id }); const create = async (inputData: Partial = {}) => { - const data = await build({ ...inputData }).then(screen); const [transientFields] = destructure(defaultTransientFieldValues, inputData); + const data = await build(inputData).then(screen); await handleBeforeCreate(data, transientFields); const createdData = await getClient().user.create({ data }); await handleAfterCreate(createdData, transientFields);