philips-software / restdouble

Run a fake REST service to use as a test double or as a backend for rapid frontend prototyping.
MIT License
4 stars 3 forks source link

JEST Integration #5

Open KlausSchaefers opened 5 years ago

KlausSchaefers commented 5 years ago

Hi,

to make restdouble really useful it would be great to have an integration into JEST and so. I would image something like this:

import restdouble from restdouble()

beforeEach () {
  restdouble.start('conf.yaml')
}

afterAll () {
  restdouble.stop()
}
ozzie80 commented 5 years ago

Hi Klaus,

Now you can use restdouble in your scripts. Please check the section 'Usage with JavaScript' in the README.