-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(parser): add mock generator and remove analyzer #107
Merged
Conversation
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
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
Remove mock generator from mockingbird-ts and import it from @mockinbird/parser instead mock generator acts as a singleton now
Codecov Report
@@ Coverage Diff @@
## release #107 +/- ##
===========================================
- Coverage 97.27% 93.90% -3.38%
===========================================
Files 18 17 -1
Lines 294 279 -15
Branches 43 42 -1
===========================================
- Hits 286 262 -24
- Misses 6 12 +6
- Partials 2 5 +3
Continue to review full report at Codecov.
|
omermorad
added a commit
that referenced
this pull request
Dec 8, 2021
* refactor(parser): refactor handlers to work with ioc (di) (#96) Add TypeDI to enable working with IoC to enable convenient DI * feat(parser): add regex functionality/handler (#98) Add 'randexp' to enable generating a random string that matches a given RegExp * fix(parser): fix import and handler priority of regex + randexp * feat(reflect): add regex to mock decorator value options Add 'randexp' to enable generating a random string that matches a given RegExp * test(mockingbird-ts): check mock generation with regex * test(mockingbird-ts): update snapshot of mock generator * fix(parser): fix import and handler priority of regex + randexp * feat(reflect): add regex to mock decorator value options Add 'randexp' to enable generating a random string that matches a given RegExp * test(mockingbird-ts): check mock generation with regex * test(mockingbird-ts): update snapshot of mock generator * feat(common): add regex constructor to exact value Add RegExp to be part of the possible values in the mock decorator (exact value) * style(reflect): add method signature for regex Add method signature for RegExp value * test(mockingbird-ts): check mock generation with regex * test(mockingbird-ts): update snapshot of mock generator * feat(logger): add initial working module (#104) * feat(logger): add initial working module Add basic logger module * chore(logger): add eslint files * chore(logger): add lint scripts * feat(fixtures): add basic fixtures (and snapshots) functionality (#105) * feat(fixtures): add basic fixtures module, skeleton and basic logic * refactor(fixtures): improve logic, change types/interfaces, add ioc typedi * refactor(fixtures): redesign classes and rearrange files, improve error texts * style(fixtures): functions name changes + adding deps * chore: rearrange dependencies and modules exported files (#106) * 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 * revert: revert commit 3bcde46 fixtures package * chore: update yarn lock dependencies (#110) * chore: update codecov coverarge target to 90% (#111) * chore(packages): version packages [skip ci] - @mockinbird/common@2.0.3-rc.0 - @mockinbird/logger@0.0.1-rc.0 - mockingbird-ts@2.1.2-rc.0 - @mockinbird/parser@3.0.2-rc.0 - @mockinbird/reflect@3.0.2-rc.0 * chore: release packages (with new name yayy) * chore: changes package names scope * chore: change mockinbird to mockingbird namespace scope (#116) * chore: change mockinbird to mockingbird namespace scope * refactor: change from mockingbird-ts to mockingbird in test-classes * chore: update manypkg and fix versions (#117) * chore(packages): version packages [skip ci] - @mockingbird/common@2.0.3-rc.1 - @mockingbird/logger@0.0.1-rc.1 - mockingbird@2.1.2-rc.2 - @mockingbird/parser@3.0.2-rc.1 - @mockingbird/reflect@3.0.2-rc.1 * chore: fix sample to work with the new package (#118) * chore: remove mockingbird-ts strings (#119) * chore: replace everything from mockingbird-ts to mockingbird * chore: replace everything from mockingbird-ts to mockingbird #2 * chore(sample): replace sample version * chore(packages): version packages [skip ci] - @mockingbird/common@2.0.3-rc.2 - mockingbird@2.1.2-rc.3 - @mockingbird/parser@3.0.2-rc.2 - @mockingbird/reflect@3.0.2-rc.2 * chore(packages): version packages [skip ci] - @mockingbird/common@2.0.3-rc.3 - mockingbird@2.1.2-rc.4 - @mockingbird/parser@3.0.2-rc.3 - @mockingbird/reflect@3.0.2-rc.3 * chore(packages): version packages [skip ci] - @mockingbird/common@2.0.3 - @mockingbird/logger@0.0.1 - mockingbird@2.1.2 - @mockingbird/parser@3.0.2 - @mockingbird/reflect@3.0.2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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