Skip to content
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

Release v0.3.10. #342

Merged
merged 26 commits into from Nov 7, 2019

Conversation

@ksaaskil
Copy link
Contributor

ksaaskil commented Nov 4, 2019

Features:

  • Add unmock-server, a mock server
  • Add unmock.randomize.on() option for randomizing responses
  • Introduce unmock CLI in unmock-cli package
ksaaskil and others added 25 commits Oct 17, 2019
* Add missing README for unmock-node.

* Tweak.
* Add README for unmock-fetch.

* Rename mitm as FetchInterceptor.

* Add more todos.

* Run prettier.
* [chore] Tewak grammar

Fixes some poor grammar and repetitive wording.

* Adds a bit of verbiage about fuzz testing.

* Incorporates Carolyn's comments
* fix(unmock-cli): previous commands failure

* docs(unmock-cli): update README

* chore(package.json): new dependencies

* fix(unmock-cli): previous commands

* feat(unmock-cli): add init command

* fix(unmock-cli): detect if yarn exists before resorting to it
* Simplify fetch interface.

* Update README.

* Fix import.

* Fix more.

* Clean-up.

* Add a comment.
* Add tests that break.

* Skip tests that do not work.
* Add spy-vs-spy tests to core.

* Fix tests some.

* Fix bug in unmock-fetch, add tests.
* Remove boxen, add tests for console.

* Deleted all console stuff.
* Simplify CreateResponse interface.

* Fix type.

* Fix stuff.
* Replace IInterceptorConstructor with IInterceptorFactory.

* Fix typing in test.

* Fix TestBackend.

* Add unmock-server package.#

* Add ServerBackend.

* Add proxy and server.

* First iteration of unmock server.

* Rename stuff, add X-Forwarded-For for testing.

* Fix package.

* Refactor dependencies.

* Refactor, add one test.

* Add assert.

* Add unmock.reset.

* Delete server.ts for now.

* Tweak index.js.

* Add prepare-cert.sh script.

* Develop server. (#329)

* Don't run lint and test compile.

* Read key and cert from cwd.

* Add script for preparing certs.

* Move the script.

* Fix the script.

* Add API.

* Add helmet.

* Update script.

* Re-introduce long post-install.

* Add a test for setting state.

* Add proxy test, does not do much.

* Revert "Add proxy test, does not do much."

This reverts commit 2e051fb.

* Add unmock-server to lint scripts.

* Add function for formatting HTTP response.

* Move constants to a file.
* Add test for boolean setting.

* Import from index.

* Add tests for AllowedHosts.
* Add randomize option.

* Add setting for randomization.

* Fix stuff, skip a few tests for now.

* Remove flaky.

* Increase jest timeout.

* Randomize by default, freeze is suuuper slow.

* Remove freeze thing.

* Clean-up.

* Add simple tests.

* Add e2e tests, fix bug.

* Clean-up.

* Move rng to backend.

* Define DEFAULT_SEED as constant.

* Add restore method for abstraction.
* Add unmock-server README, change script permissions.

* Add title.
* Add note on Docker usage.

* Tune README.
* Add SNICallback.

* Add node-forge.

* Create default cert.

* Better conf.

* Add docs.

* Add certificates and tests.

* Update README.

* Remove script for generating certs.

* Try using stronger sha.
* Update index.js.

* Add unmock-server bin.
@codecov-io

This comment has been minimized.

Copy link

codecov-io commented Nov 4, 2019

Codecov Report

Merging #342 into master will increase coverage by 8.02%.
The diff coverage is 86.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #342      +/-   ##
==========================================
+ Coverage   72.65%   80.67%   +8.02%     
==========================================
  Files          51       51              
  Lines        2165     2303     +138     
  Branches      561      571      +10     
==========================================
+ Hits         1573     1858     +285     
+ Misses        592      445     -147
Impacted Files Coverage Δ
packages/unmock-fetch/src/serialize.ts 85.71% <ø> (ø) ⬆️
packages/unmock-node/src/backend.ts 100% <100%> (ø) ⬆️
packages/unmock-core/src/settings/boolean.ts 100% <100%> (+75%) ⬆️
...ackages/unmock-core/src/random-number-generator.ts 100% <100%> (ø)
packages/unmock-core/src/index.ts 83.92% <100%> (+1.78%) ⬆️
packages/unmock-fetch/src/index.ts 87.5% <100%> (ø) ⬆️
packages/unmock-core/src/runner/index.ts 95% <100%> (ø) ⬆️
packages/unmock-core/src/backend/index.ts 89.28% <100%> (+7.31%) ⬆️
packages/unmock-server/src/constants.ts 100% <100%> (ø)
packages/unmock-node/src/index.ts 100% <100%> (ø) ⬆️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f4f966...920b360. Read the comment docs.

@ksaaskil ksaaskil marked this pull request as ready for review Nov 4, 2019
@ksaaskil ksaaskil requested review from mikesol and carolstran Nov 4, 2019
@ksaaskil ksaaskil merged commit 800b770 into master Nov 7, 2019
2 checks passed
2 checks passed
ci/circleci: build Your tests passed on CircleCI!
Details
ci/circleci: verify-before-publish Your tests passed on CircleCI!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.