-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mockingbird-ts): arrange classes - change mock-factory to mo…
…ck-generator (#55) * refactor(mockingbird-ts): change the name of mock factory to be mock generator change MockFactory name to be MockGenerator BREAKING CHANGE: MockFactory changed to be MockGenerator re #42 * chore(repo): update tsconfig build config * refactor(types): change 'class' to 'type' with new definition * refactor(reflect): change 'class' type to 'type' type * refactor(parser): change 'class' type to 'type' * refactor(mockingbird-ts): generator now has state and di, remove static method 'create' * test(mockingbird-ts): add unit test for mock generator * test(mockingbird-ts): add unit test for mock generator * refactor(parser): add option to set locale and change static class member (state instead) * test(mockingbird-ts): remove test of circular mock
- Loading branch information
Showing
12 changed files
with
116 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Class, Faker } from '@mockinbird/types'; | ||
import { Type, Faker } from '@mockinbird/types'; | ||
import { ClassParser } from '../lib/class-parser'; | ||
|
||
export class AbstractValueHandler { | ||
public constructor(protected readonly faker?: Faker, protected readonly classParser?: ClassParser<Class>) {} | ||
public constructor(protected readonly faker?: Faker, protected readonly classParser?: ClassParser<Type>) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Callback, Class, ClassLiteral, EnumObject, ExactValue, MultiClass } from '@mockinbird/types'; | ||
import { Callback, Type, ClassLiteral, EnumObject, ExactValue, MultiClass } from '@mockinbird/types'; | ||
|
||
export type MockOptions = Callback | ExactValue | Class | EnumObject | MultiClass; | ||
export type MockOptions = Callback | ExactValue | Type | EnumObject | MultiClass; | ||
|
||
export type GeneratedMock<TClass extends Class = any> = Class<TClass> | ClassLiteral<TClass>; | ||
export type GeneratedMock<TClass extends Type = any> = Type<TClass> | ClassLiteral<TClass>; |
Oops, something went wrong.