-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ts-jest instead of babel directly / run prettier during github actions / fix prettier issues #434
Conversation
I appreciate this but you might want to wait just a bit longer. I've got a branch cooking that does a lot of updates including dropping older versions of node and updating to 18 as the min version |
It's ok, I can pull some hunks out of this if parts of it work. |
Hmm... the coverage report seems to have broken |
Alright updated master with all the package bumps (except eslint 9 because ts parser is a bit behind) |
4a91d9b
to
8dbbf7e
Compare
@derduher - This is ready for review now. Runs prettier during the github actions too, which found that some errors had crept in. |
Overall I like this but can you fix the failing test for xmllint (it shows up when installed)? Also it'd be nice to get the coverage report unbroken. Feel free to replace whatever is reporting coverage.
|
How the heck did I miss that? The issue is from:
Changing But... I think this is pretty fragile. I think we need to make a couple changes here, but I'm not positive what I want to do yet. Things I have in mind:
|
I'm in favor of the last two with a default path. I think the only reason dist is included in the published packages as a subfolder is I was too lazy to move it just for the ts compile on publish.
|
8013d99
to
72975e5
Compare
Remove npm ci step Fix tsconfig.json Add ts-jest f .
Fix mistake in lint paths
@derduher I believe this is ready for review now. The test has been fixed. I fixed an issue with the |
Any idea what is going on with coverage tests? |
figured it out. will fix in master but the |
Changes
babel
ts-jest
lint
out of thetest
scripttest
script so we can pass params likenpm run test -- tests/sitemap-index.test.ts --watch
when testing single filestoThrowError
withtoThrow
utils.js
to typescriptrequires
toimports