-
Notifications
You must be signed in to change notification settings - Fork 1
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
Reliability: Flow types for tests (part 3) #278
Conversation
7bdb3d9
to
abc343c
Compare
09f2254
to
f65a1b7
Compare
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.
defaultTargetOptions.context
is not on InitialOptions
and does not appear to be used within core
@@ -1,4 +1,5 @@ | |||
import assert from 'assert'; | |||
// @flow | |||
import assert from 'assert/strict'; |
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.
Using local node:assert
definition to add in assert.rejects
flow-typed/node/assert.js
Outdated
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.
flow types missing for assert.rejects
and assert.fail
, using override to pass type check
@@ -2317,7 +2333,7 @@ describe('html', function () { | |||
}); | |||
|
|||
// could run in either order. | |||
assert(output.sort(), ['a', 'b', 'c']); |
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.
assert(['a', 'b', 'c', 'c'], ['a', 'b', 'c'])
Was erroneously passing. I have updated the assertion to include the missing asset. From the assertBundles
above, my change looks correct but I'm not 100% sure. Please confirm that it's the expected output
Continuing from here