Code Monkey home page Code Monkey logo

mimic's People

Contributors

john-twigg-ck avatar kashyap-parikh-ck avatar lookfirst avatar mackness avatar volodymyr-ladnik-ck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mimic's Issues

Karma

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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):

  • OS: [e.g. OSX, Windows]
  • Node version if applicable: [e.g. v10.8.0]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Support launching Mimic easily from Node.js

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

@creditkarma/mimic-cli is missing @creditkarma/mimic-graphql dependency

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. npm install -g @creditkarma/mimic-cli
  2. mimic --help
  3. 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):

  • OS: OSX
  • Node version: v10.8.0
  • Version 2.0.3

Additional context
Can be resolved by installing @creditkarma/mimic-graphql package explicitly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.