jest-mock-promise
Advanced tools
Comparing version 1.0.21 to 1.0.22
{ | ||
"name": "jest-mock-promise", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "Synchronous Promise Mock for testing with Jest", | ||
@@ -5,0 +5,0 @@ "main": "dist/jest-mock-promise.js", |
# What's this? | ||
This is yet another synchronous implementation od JavaScript Promise, written to ease the pain of unit testing. It's written in TypeScript as a support class for an [Jest Mock Axios](https://www.npmjs.com/package/jest-mock-axios). | ||
## Why yet another? | ||
### Why yet another? | ||
Because of "code first, search later" approach to solving problems. | ||
## Can it be used with Mocha/Jasmine? | ||
### Can it be used with Mocha/Jasmine? | ||
We have good news! The answer is Yes! In fact it can be used outside a unit-testing scenario, since it doesn't contain any unit-testing-specific features! | ||
## Why is it then called *jest-mock-promise*? | ||
### Why is it then called *jest-mock-promise*? | ||
Because it was originally written as a part of the [jest-mock-axios](https://www.npmjs.com/package/jest-mock-axios) project and still is it's integral part (as an external dependency). So it's name is a legacy of it's humble beginnings :) | ||
@@ -12,0 +12,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34700