Skip to content

Commit

Permalink
refactor: rename isStub to isStubbed
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Sep 22, 2022
1 parent 7c58f10 commit fd1fcd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/builder/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class Builder<
* Generate fields for each row by calling the factory callback
*/
models = Array.from({ length: count }).map(() =>
this.factory.callback({ faker, isStub: false })
this.factory.callback({ faker, isStubbed: false })
)

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type CasingStrategy = 'camel' | 'snake' | 'none'
/**
* Callback that must be passed to the `defineFactory` function.
*/
export type DefineFactoryCallback<T> = (args: { faker: typeof faker; isStub: boolean }) => {
export type DefineFactoryCallback<T> = (args: { faker: typeof faker; isStubbed: boolean }) => {
[K in keyof T]: T[K] | (() => T[K] | Promise<T[K]>)
}

Expand Down

0 comments on commit fd1fcd5

Please sign in to comment.