-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Jest jasmine/ts migration #7970
Changes from all commits
a9fb41b
239e2c7
09867ae
0d4c004
f57370a
f9d1025
e2877b0
d00496a
eee8339
5ef9829
2d14cf1
bc6d48f
d2b3eba
b52c8f2
a3263b5
d5a4c17
b73f4b7
67a046a
69a427e
645bc92
03ec289
7aeeb6f
26c59b5
7f76abb
0625619
14a1564
9a9c65f
f9106ef
b9b422a
ee9d572
93f7414
8e3ecd8
cf01cf9
b89e537
548f05f
8e264a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,4 @@ | |
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
test('global.test', () => {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
describe('matchers', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here - seems like they should be in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one might be needed? describe('matchers', () => {
it('proxies matchers to expect', () => {
expect(() => expect(1).toBe(2)).toThrowErrorMatchingSnapshot();
});
}); There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, but it doesn't test anything jasmine? I don't understand what it means by "proxies to expect" - it uses There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In other words, Jest test suite is integration test that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right - if |
||
it('proxies matchers to expect', () => { | ||
expect(() => expect(1).toBe(2)).toThrowErrorMatchingSnapshot(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
jest.useFakeTimers(); | ||
|
||
import pTimeout from '../pTimeout'; | ||
|
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.
These tests looks like they belong in
expect
, don't they?/cc @pedrottimark
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.
Yes, I will make sure that
expect
covers these test cases.