creditkarma / mimic Goto Github PK
View Code? Open in Web Editor NEWService Impersonator for Engineers
Home Page: https://mimicjs.io
License: Apache License 2.0
Service Impersonator for Engineers
Home Page: https://mimicjs.io
License: Apache License 2.0
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots/Logs
If applicable, add screenshots and/or logs to help explain your problem.
Desktop/Server (please complete the following information):
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
I want to use Mimic in unit tests in node.js
Something like
describe('Unit test', () => {
before(async() => {
mimic.start("features.mimic")
})
it('Test Feature', (done) => {
//test things that also make thrift calls
})
after(async () => {
mimic.shutdown()
})
})
Describe the solution you'd like
I'd like a single line entry for loading a mimic file and starting up the service stubs.
Describe alternatives you've considered
Running a shell script in parallel, but this wont work for Circle CI.
Additional context
This is especially disturbing for array index "keys" like 0
since it expands all arrays in the doc.
Originally posted by @OmarSayah793 in https://github.com/github/fetch/issues/1300#issuecomment-1510908118
Originally posted by @OmarSayah793 in https://github.com/github/fetch/issues/1300#issuecomment-1510908118
Is your feature request related to a problem? Please describe.
I'd like the first time experience to be better, loaded with an example or boilerplate code.
Describe the solution you'd like
When I first launch App, I'd like to load samples so I can quickly see things working.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
npm install -g @creditkarma/mimic-cli
mimic --help
Error: Cannot find module '@creditkarma/mimic-graphql
Expected behavior
$ mimic --help
Usage: mimic [options] <file.mimic> [-r|--request] <request.json>
Options:
-h, --help output usage information
-a, --all enable all services
-r, --request switch to client mode and send request
-V, --version output the version number
Screenshots/Logs
mimic --help
internal/modules/cjs/loader.js:583 throw err; ^ Error: Cannot find module '@creditkarma/mimic-graphql' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/volodymyr.ladnik/.nvm/versions/node/v10.8.0/lib/node_modules/@creditkarma/mimic-cli/dist/index.js:4:25) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3)
Desktop/Server (please complete the following information):
Additional context
Can be resolved by installing @creditkarma/mimic-graphql
package explicitly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.