Closed sennyeya closed 1 year ago
Couple of questions:
memfs
is populated with the HTML files during Karma tests, getting a not found error locally and in the CI, but not sure where that would be solved?@P0lip Any ideas on why the Karma tests are failing? I think it's related to memfs
mocks, but it seems odd that moving the directory causes this issue in the same test case.
Yeah, that is most likely due to the HTML formatter relying on fs
and it not being available in Karma launcher we use (it's plain Chrome browser in headless mode, we use webpack to bundle things and have some basic fs mock).
I'll try to update HTML formatter to not depend on fs
at all so that we don't need to worry about anything.
Great, thanks!
@sennyeya could you merge the latest changes when you have a minute? 🙏 that should unblock test-browser 🤞
@P0lip It looks like cliui
is having issues with the Karma browser tests, which I think is expected as it's just a nodejs module. I think this was excluded originally by including packages/ci/**
in the karma.config.ts
exclude
section. As you'll be updating this package to be all environment friendly, I think it makes sense to skip this for now.
Other than that, everything should be good minus the commit message (what's the format for those?)
Other than that, everything should be good minus the commit message (what's the format for those?)
it has to be accepted by commitlint per its config here https://github.com/stoplightio/spectral/blob/develop/commitlint.config.js
I'll take a final look on Monday, and if it's all good I will proceed and merge it. Thanks a lot of your time and contribution. Appreciate it a lot.
@P0lip Thanks for your help pushing this through!
:tada: This PR is included in version 6.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 1.18.1 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
Fixes #2467. Moves the formatters to their own package that is then imported by
@stoplight/spectral-cli
.👀 @P0lip
Checklist
Existing tests should cover any issues, this PR is just a move with additional dependency work.
Does this PR introduce a breaking change?
The formatters for the CLI have been pulled out to their own package, not necessarily breaking for any contracts, but will require pulling in a new package on CLI version update.
Additional context
I wasn't sure if this should sit in
packages/core
or a separate package, I think it makes sense to pull it completely out as it's not core functionality and just a presentation layer, but I could go either way.