How to test plugins?See original GitHub issue
Yet another question 😉 I just created my first tiny httpyac plugin \o/. Same time its my first JS project ever, too.
No TS and all that jazz (yet) - but I wanted at least to test it before releasing. I got the test framework up and running, but I wonder how can I ensure
cli.execute to load the plugin for testing? I thought of a deeper layer than the
cli which could be evoked and load the plugin? Any ideas?
If you have the time pls check https://github.com/rngtng/httpyac-plugin-yaml-body/blob/main/test/index.test.js#L12-L17. Thanks
- Created a year ago
- Comments:14 (14 by maintainers)
Top GitHub Comments
I kept one high-level integration test, moved the edge cases to unit test. I c&p you
getHeader to stay independent as much of the inner httpyac implementation. Next setting up pipeline and publish npm 😛