meeshkan / unmock-js

Fuzz test your REST API calls
https://unmock.io
93 stars 8 forks source link

Extract runner from unmock-core #380

Closed carolstran closed 4 years ago

carolstran commented 4 years ago

Part of #299

TODO in future PRs:

@mikesol My build is still failing because it cannot find the unmock-runner module. Assuming this is a lerna thing? Any tips for how to resolve would be appreciated.

carolstran commented 4 years ago

Makes sense @mikesol, although I also think it's something that will soon be replaced (as in the next day or two) so maybe not urgent for the time being.

Any thoughts on the build error though? Because that is blocking for merge.

mikesol commented 4 years ago

Agreed that it is bikeshedding. The most recent build I can see is 3260, and in there, the issue is this line:

import runner, { IMeeshkanDoneCallback, IRunnerOptions } from "unmock-runner";

I think it should be this instead (haven't tested...):

import runner, { IMeeshkanDoneCallback, IRunnerOptions } from "./";
carolstran commented 4 years ago

Everything's passing now! @mikesol, let me know if I should merge because then I can work on the packages tomorrow.

mikesol commented 4 years ago

Cool! @ksaaskil can also add his review, after which my recommendation would be the following:

carolstran commented 4 years ago

@mikesol Will the unmock-runner be accessible via the unmock-js package or do we need to create its own npm package? Asking because some of the types/initial setup from the runner is necessary for unmock-jest-runner

@ksaaskil That's a good point and I do agree, but it's going to be replaced as soon as we implement the unmock-jest-runner (hopefully today or tomorrow). However, if it really bothers you - I can fix it now!

ksaaskil commented 4 years ago

@mikesol Will the unmock-runner be accessible via the unmock-js package or do we need to create its own npm package? Asking because some of the types/initial setup from the runner is necessary for unmock-jest-runner

@ksaaskil That's a good point and I do agree, but it's going to be replaced as soon as we implement the unmock-jest-runner (hopefully today or tomorrow). However, if it really bothers you - I can fix it now!

No reason to fix it now, it was just a comment :)

mikesol commented 4 years ago

@mikesol Will the unmock-runner be accessible via the unmock-js package or do we need to create its own npm package? Asking because some of the types/initial setup from the runner is necessary for unmock-jest-runner @ksaaskil That's a good point and I do agree, but it's going to be replaced as soon as we implement the unmock-jest-runner (hopefully today or tomorrow). However, if it really bothers you - I can fix it now!

unmock-runner will be its own npm package that we'll import from, and it will be published automatically by lerna. The types will be accessible from that package. unmock-js is not a package AFAIK. Does that answer your question?

carolstran commented 4 years ago

@mikesol Yes it does, thank you! Didn't realize that lerna publishes packages automatically.