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

Rewrite tests that use subscribeAndCount with ObservableStream #12163

Merged
merged 57 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
3bf6d61
Replace subscribeAndCount in fragmentRegistry test with ObservableStream
jerelmiller Nov 21, 2024
28b7a87
Create a toEmitValue matcher to use with observable streams
jerelmiller Nov 21, 2024
1dfc5e8
Use new matcher in ObservableQuery tests rewritten so far
jerelmiller Nov 21, 2024
9dae5aa
Replace more ObservableQuery tests with ObservableStream
jerelmiller Nov 21, 2024
9c12835
Enable skipped test and rewrite with ObservableStream
jerelmiller Nov 21, 2024
2f12699
Tweak formatting of message
jerelmiller Nov 21, 2024
da59284
Convert more ObservableQuery tests to use ObservableStream
jerelmiller Nov 21, 2024
fa08937
Remove FixMe comment that no longer applies and rewrite test
jerelmiller Nov 21, 2024
cac2c08
Simplify some checks on getCurrentResult
jerelmiller Nov 21, 2024
3a1b8dc
Remove the rest of ObservableQuery tests with subscribeAndCount
jerelmiller Nov 21, 2024
e7d3c28
Remove use of itAsync in ObservableQuery tests
jerelmiller Nov 21, 2024
1ecc69e
Convert useMutation tests to use ObservableStream instead of subscrib…
jerelmiller Nov 26, 2024
4a99cf1
Rewrite test with render stream
jerelmiller Nov 26, 2024
28cb771
Use a number to track numbersArray data
jerelmiller Nov 26, 2024
5a769e2
Enable check for numbers data at end
jerelmiller Nov 26, 2024
8ea4995
Remove subscribeAndCount from mutationResults tests
jerelmiller Nov 26, 2024
9615571
Remove itAsync in mutationResults tests where possible
jerelmiller Nov 26, 2024
096ff71
Remove unused reject argument to setupObsQuery
jerelmiller Nov 26, 2024
5a8c6f9
Remove reject from setupDelayObsQuery
jerelmiller Nov 26, 2024
e523df1
Remove use of itAsync in mutationResults
jerelmiller Nov 26, 2024
4356352
Rewrite policies tests to use ObservableStream
jerelmiller Nov 26, 2024
61b1a12
Remove reject argument to setup in fetchMore tests
jerelmiller Nov 26, 2024
c914474
Remove reject argument to setupWithCacheConfig
jerelmiller Nov 26, 2024
8378f6d
Remove reject argument to setup
jerelmiller Nov 26, 2024
ced7a7f
Remove reject argument to setupWithCacheConfig
jerelmiller Nov 26, 2024
8298743
Switch to ObservableStream from subscribeAndCount in fetchMore tests
jerelmiller Nov 26, 2024
a52a653
Remove commented test
jerelmiller Nov 26, 2024
2df8ba5
Use ObservableStream in more tests
jerelmiller Nov 26, 2024
5ed90a2
Remove remaining tests using itAsync in fetchMore tests
jerelmiller Nov 26, 2024
3f92538
Remove unused import
jerelmiller Nov 26, 2024
ec3ecf9
Rename toEmitValue matcher to toEmitAnything
jerelmiller Nov 26, 2024
f1b548d
Add a toEmitNextValue matcher
jerelmiller Nov 26, 2024
3d7bb24
Use toEmitValue matcher where useful in fetchMore tests
jerelmiller Nov 26, 2024
3c27b72
Add toComplete matcher
jerelmiller Nov 26, 2024
3610b5c
Add toEmitError matcher
jerelmiller Nov 26, 2024
c510c18
Rewrite responseIterator tests with ObservableStream
jerelmiller Nov 26, 2024
a9f0956
Enable test as failing
jerelmiller Nov 26, 2024
283a9d4
Pass this.customTesters to this.equals
jerelmiller Nov 27, 2024
41b2ed7
Rename toEmitNextValue to toEmitValue
jerelmiller Nov 27, 2024
90ded38
Use strict equality for toEmitValue
jerelmiller Nov 27, 2024
4486103
Make toEmitValue more like toEqual
jerelmiller Nov 27, 2024
915cabd
Add a toEmitMatchedValue matcher
jerelmiller Nov 27, 2024
14fbce6
Add to toEmitValueStrict matcher
jerelmiller Nov 27, 2024
27a11e8
Add a toEmitNext matcher
jerelmiller Nov 27, 2024
bd6ff84
Rewrite QueryManager tests to use ObservableStream
jerelmiller Nov 27, 2024
566589e
Rewrite fetchPolicies tests to use ObservableStream
jerelmiller Nov 27, 2024
629c54b
Enable skipped test in fetchPolicies
jerelmiller Nov 27, 2024
e23dd86
Rewrite fetchPolicies to use ObservableStream
jerelmiller Nov 27, 2024
faa5122
Rewrite client tests to use ObservableStream
jerelmiller Nov 27, 2024
4d01f96
Only print subset of object in toEmitMatchedValue
jerelmiller Nov 27, 2024
bfc2736
Rewrite client tests to use ObservableStream
jerelmiller Nov 27, 2024
619d0c5
Rewrite responseIteratorNoAsyncIterator tests with ObservableStream
jerelmiller Nov 27, 2024
83a35d8
Use custom matchers where appropriate
jerelmiller Nov 27, 2024
67a6a42
additional adjustments
phryneas Dec 5, 2024
13ce2fa
prettier
phryneas Dec 5, 2024
49d367a
Clean up Prettier, Size-limit, and Api-Extractor
phryneas Dec 5, 2024
349dda8
Merge branch 'main' into jerel/rewrite-to-observable-stream
jerelmiller Dec 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"files.insertFinalNewline": true,
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.enableFiletypes": ["mdx"],
"jest.jestCommandLine": "node_modules/.bin/jest --config ./config/jest.config.js --ignoreProjects 'ReactDOM 17' --runInBand"
"jest.jestCommandLine": "node --expose-gc node_modules/.bin/jest --config ./config/jest.config.js --ignoreProjects 'ReactDOM 17' --runInBand"
}
Loading
Loading