-
Notifications
You must be signed in to change notification settings - Fork 154
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
npm test only running shim tests #766
Comments
Moving the shim tests to the end of |
Hey, thanks for bringing this to my attention @humphd. I think it was running all of them for me but I was using |
Thanks. It's not a big rush, but it's something I want fixed before I ship an update. The best fix might be to do multiple builds and not bother trying to make it all work in one? Not sure. |
Do you mean to completely separate the shim tests from the rest? |
Sure, we could even introduce a test that uses webpack vs. parcel to do the build, and does your tests as a separate process we run with |
@humphd .......... my bad! I had describe.only in my tests so as not to run all tests when I was writing them. I removed it from one but forgot to remove it from the other three spec files I wrote. For future reference, is there a way you would normally go about running only a specific describe? (I usually use jest so am not very familiar with karma-mocha) |
Oh, nice. I completely missed this too. I'd have to look what the right way with Karma is, too. I also usually use Jest, so I can't remember. We used karma-mocha for Filer due to wanting to have real indexeddb in tests vs. JSDOM. Thanks for the follow-up, I'll review your PR. |
I do prefer jest usually but it makes sense to use Karma for the reasons you mentioned. By the way, I'm still happy to take a look at separating out the tests for the shims if you think this is necessary. However, I'd need to clarify what we want to get out of doing that as I'm not 100% sure why we would go down that route =P |
Agreed, I don't think it's necessary, given the actual issue. I was anticipating a harder solution than removing .only :) |
* test: replace describe.only in shim tests with describes so all tests run * test: move require chai to top of file for consistency with other tests * chore: npm install * test: replace describe.only in shim tests with describes so all tests run * test: move require chai to top of file for consistency with other tests * chore: npm install * Revert "chore: npm install" This reverts commit cddeef4. * Revert "test: move require chai to top of file for consistency with other tests" This reverts commit 40df791.
Fixed by #767 |
After merging aacc806 it looks like we're only running the shim tests now vs. the whole set of tests (cc @bcheidemann):
The text was updated successfully, but these errors were encountered: