Skip to content
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

Adding --extension option, allowing override of defaults. #340

Closed
wants to merge 1 commit into from

Conversation

brev
Copy link
Contributor

@brev brev commented Dec 24, 2021

Adding --extension option, allowing override of defaults.

I'm using experimental ESM loaders to have Node.js process .svelte files, and now I can run code coverage on them too.

Modified --all option to check file extensions against extension list
instead of a hard-coded list.

Updated links for default lists in README for --exclude and --extension.

Tests are passing.

I did not add new tests, as that would require either changing, or adding, a
test runner to use ESM loaders. As the changes here are simple, I thought it
might be overkill. But let me know what you think.

thanks!

Checklist
  • npm test, tests passing
  • npm run test:snap (to update the snapshot)
  • tests and/or benchmarks are included
  • documentation is changed or added

… Node.js

experimental ESM loaders to have Node process `.svelte` files, and now I can
run code coverage on them too.

Modified `--all` option to check file extensions against `extension` list
instead of a hard-coded list.

Updated links for default lists in README for `--exclude` and `--extension`.

Tests are passing.

I did not add new tests, as that would require either changing, or adding, a
test runner to use ESM loaders. As the changes here are simple, I thought it
might be overkill. But let me know what you think.

thanks!
@brev
Copy link
Contributor Author

brev commented Dec 24, 2021

Oh wow, this is a duplicate of #331 haha.

@bcoe
Copy link
Owner

bcoe commented Dec 30, 2021

@brev thank you for taking the time to make a contribution 👏

I'm going ahead and landing #331, since it was most of the way there, and just needed to have snapshots updated.

Please don't hesitate to contribute in the future.

@bcoe bcoe closed this Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants