Surnet / swagger-jsdoc

Generates swagger/openapi specification based on jsDoc comments and YAML files.
MIT License
1.69k stars 228 forks source link

Fixes cleaned up errors still logging doc path. #328

Closed jramer closed 1 year ago

jramer commented 2 years ago

Small one. The old code cleans up YAMLReferenceErrors but will still log Error in ${filePath} :\n when all errors for the doc has been cleaned away.

This is a fix for that behaviour.

And thanks for a great package!

jramer commented 2 years ago

I took a quick look at your tests but I can't find anything remotely similar to what I need to test and I'm not familiar with jest.

I at least need help with setting up the "wrong data" to feed into my test.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

daniloab commented 1 year ago

I took a quick look at your tests but I can't find anything remotely similar to what I need to test and I'm not familiar with jest.

I at least need help with setting up the "wrong data" to feed into my test.

Get a test similar to your case, map the data that you need, mock it then test it