-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Test: Move lib/reader* to single runner #3973
Conversation
To test, this should just pass tests. No real functional changes. |
e374eef
to
4efa0ea
Compare
Also remove chai-immutable and add our own immutable-chai helper. chai-immutable is busted and overrides equal, which is just a bad idea.
4efa0ea
to
8495ac1
Compare
@@ -33,6 +33,30 @@ | |||
}, | |||
"test": [ "assembler", "index", "store" ] | |||
}, | |||
"reader-comment-email-subscriptions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started to rename all test files to mirror file under test and to reword suite description to have the same name as file. That way we can easily find failing tests because test output directly translates into path. Let me know what do you think about this idea. We definitely can skip that in this PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that makes sense. I was also thinking about making all of these index
but ... 🐔
I refactored one of the tests to use |
|
||
describe( 'team-store', function() { | ||
|
||
useFakeDom(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, I missed that one!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes me wonder why the TeamStore needs a DOM at all...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really good question :)
I should check if we can remove it completely.
6633318
to
e5c05f5
Compare
Also give the function the helpers use a helpful name. This appears when those helpers bomb during test runs.
@gziolo Could you give this another look? I wasn't happy about how the team test was using timers, so I added a new helper for |
Ooops, I commented directly commits :) |
…-single-runner Test: Move lib/reader* to single runner
Also remove chai-immutable and add our own immutable-chai helper. chai-immutable is busted and overrides equal, which is just a bad idea.