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

Fix auto-watch when running npm run test:inject:debug #8124

Merged
merged 3 commits into from Feb 6, 2022

Conversation

mattalxndr
Copy link
Contributor

@mattalxndr mattalxndr commented Feb 3, 2022

When running npm run test:inject:debug, watching/reloading is done by the karma-rollup-preprocessor plugin. That plugin needed to be upgraded to its prerelease version at master before this was fixed.

A screencast that shows the problem and the fix:

Side note, I've left a note over at jlmakes/karma-rollup-preprocessor asking when the new version will be coming out, at which time you would be able to remove the URL from package.json.

@mattalxndr
Copy link
Contributor Author

Not sure why rollup is putting the generated test JS next to the TS files, or if that's what's desired, but I added a few lines to .gitignore to address that.

.gitignore Outdated Show resolved Hide resolved
.github/workflows/test.yml Show resolved Hide resolved
@@ -88,7 +88,7 @@
"karma-coverage": "2.1.0",
"karma-firefox-launcher": "2.1.2",
"karma-jasmine": "4.0.1",
"karma-rollup-preprocessor": "7.0.7",
"karma-rollup-preprocessor": "github:jlmakes/karma-rollup-preprocessor#master",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait what they say, maybe we can avoid using this and use the next update.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@Gusted Gusted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, agreed to merge it?

@mattalxndr
Copy link
Contributor Author

Everything's resolved except for this:

#8124 (comment)

You did mention you wanted to wait for jlmakes/karma-rollup-preprocessor to be updated so we wouldn't need to deal with the URL in the package.json.

@mattalxndr
Copy link
Contributor Author

The push from last night was just to rebase onto master

@Gusted
Copy link
Contributor

Gusted commented Feb 6, 2022

You did mention you wanted to wait for jlmakes/karma-rollup-preprocessor to be updated so we wouldn't need to deal with the URL in the package.json.

Well seems like they didn't update so it's fine then.

@Gusted Gusted merged commit 79f034e into darkreader:master Feb 6, 2022
@Gusted
Copy link
Contributor

Gusted commented Feb 6, 2022

Thank you!

@mattalxndr mattalxndr deleted the pr3 branch February 7, 2022 07:04
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.

None yet

2 participants