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

Reliability: Flow types for tests (part 3) #278

Merged
merged 19 commits into from
Dec 12, 2024
Merged

Conversation

alshdavid
Copy link
Contributor

@alshdavid alshdavid changed the title WIP: Reliability: Flow types for tests (part 2) WIP: Reliability: Flow types for tests (part 3) Dec 12, 2024
@alshdavid alshdavid changed the base branch from main to alsh/add-flow-to-tests-2 December 12, 2024 03:38
@alshdavid alshdavid force-pushed the alsh/add-flow-to-tests-2 branch from 7bdb3d9 to abc343c Compare December 12, 2024 03:48
@alshdavid alshdavid force-pushed the alsh/add-flow-to-tests-3 branch from 09f2254 to f65a1b7 Compare December 12, 2024 03:48
Copy link
Contributor Author

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';
Copy link
Contributor Author

@alshdavid alshdavid Dec 12, 2024

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

@alshdavid alshdavid changed the title WIP: Reliability: Flow types for tests (part 3) Reliability: Flow types for tests (part 3) Dec 12, 2024
Copy link
Contributor Author

@alshdavid alshdavid Dec 12, 2024

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']);
Copy link
Contributor Author

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

Base automatically changed from alsh/add-flow-to-tests-2 to main December 12, 2024 06:08
@alshdavid alshdavid merged commit f0f92f2 into main Dec 12, 2024
17 checks passed
@alshdavid alshdavid deleted the alsh/add-flow-to-tests-3 branch December 12, 2024 07:03
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.

2 participants