-
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(parser): add mock generator and remove analyzer (#107)
* refactor(parser): add mock generator and remove analyzer Add MockGenerator Remove ClassAnalyzer moving all the logics into ClassParser BREAKING CHANGE: ClassAnalayzer has been removed and all the logic has been moved to ClassParser * test(parser): add (move) mock generator integration test * chore(parser): config jest and typescript to run integration test * fix(mockingbird-ts): use mock generator differently (singleton) Remove mock generator from mockingbird-ts and import it from @mockinbird/parser instead mock generator acts as a singleton now * refactor(mockingbird-ts): fix mock factory * chore(mockingbird-ts): config jest to collect coverage properly
- Loading branch information
Showing
35 changed files
with
148 additions
and
207 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 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 +1,2 @@ | ||
dist | ||
dist | ||
jest.config.js |
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,12 +1,12 @@ | ||
import { Container } from 'typedi'; | ||
import { ClassParser } from './lib/parser/class-parser'; | ||
import { MockGenerator } from './lib/generator/mock-generator'; | ||
import { Faker } from '@mockinbird/common'; | ||
import RandExp from 'randexp'; | ||
|
||
export * from './types/types'; | ||
export { ClassParser }; | ||
export * from './lib/types/types'; | ||
export * from './lib/generator/mock-generator'; | ||
|
||
Container.set('Faker', Faker); | ||
Container.set('RandExp', RandExp); | ||
|
||
export const classParser = Container.get(ClassParser); | ||
export const mockGenerator = Container.get(MockGenerator); |
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.