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

Convert NetworkController unit tests to TypeScript #18476

Merged
merged 59 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
068f698
Convert shared/constants/metametrics to TS
mcmire Mar 28, 2023
fb8f12a
Merge branch 'develop' into convert-metametrics-constants
mcmire Mar 30, 2023
f266357
Capitalize this
mcmire Mar 30, 2023
c1b9bfe
Fix JSDoc
mcmire Mar 30, 2023
55142e5
Add missing JSDoc
mcmire Mar 30, 2023
ddf3627
Add missing JSDoc.
mcmire Mar 30, 2023
5c7ef09
Add missing JSDoc.
mcmire Mar 30, 2023
3f7711b
Correct MetaMetricsContext
mcmire Mar 30, 2023
150a143
Use LedgerTransportTypes
mcmire Mar 30, 2023
9dfc90c
Convert more instances of EVENT_NAMES, etc.
mcmire Mar 30, 2023
4a611d7
Fix detected-token.js
mcmire Mar 31, 2023
4c6eb92
Merge branch 'develop' into convert-metametrics-constants
mcmire Mar 31, 2023
d8fc6e7
Normalize constants
mcmire Mar 31, 2023
b588775
Rename lingering instance
mcmire Mar 31, 2023
0135549
Merge branch 'develop' into convert-metametrics-constants
mcmire Mar 31, 2023
83b3f0a
Fix another instance of the old constant sneaking in
mcmire Mar 31, 2023
bbb28e3
Merge branch 'develop' into convert-metametrics-constants
mcmire Mar 31, 2023
f1577c6
Merge branch 'develop' into convert-metametrics-constants
mcmire Mar 31, 2023
46fc20f
Convert NetworkController to TypeScript
mcmire Mar 28, 2023
84140af
Revise JSDocs for ProviderType
mcmire Apr 4, 2023
c890d90
Revise JSDocs for isErrorWithCode
mcmire Apr 4, 2023
f243281
Revise error for assertNetworkId
mcmire Apr 4, 2023
92b1b5f
Merge branch 'develop' into convert-network-controller-to-ts
mcmire Apr 4, 2023
88811d2
Revert these changes
mcmire Apr 4, 2023
ac742ea
Remove dupe @metamask/safe-event-emitter entry from package.json
mcmire Apr 4, 2023
de0c195
Remove id from ProviderConfiguration
mcmire Apr 4, 2023
d137c99
Revert some of the changes to obs-store
mcmire Apr 4, 2023
6ed86e1
I guess we can still keep this
mcmire Apr 4, 2023
2403fc8
Bump @metamask/obs-store, remove type overrides
mcmire Apr 5, 2023
0920e19
Merge branch 'develop' into convert-network-controller-to-ts
mcmire Apr 5, 2023
dd2ebd4
Update lavamoat
mcmire Apr 5, 2023
184737a
Revert "Update lavamoat"
mcmire Apr 5, 2023
a895b2b
Make 'setActive' in upsertNetworkConfiguration optional
mcmire Apr 5, 2023
ad99173
Merge branch 'develop' into convert-network-controller-to-ts
mcmire Apr 6, 2023
e067509
Merge branch 'develop' into convert-network-controller-to-ts
mcmire Apr 6, 2023
e591fd7
Merge branch 'develop' into convert-network-controller-to-ts
mcmire Apr 6, 2023
bda965b
Convert NetworkController unit tests to TypeScript
mcmire Apr 4, 2023
d43706a
Remove TODO
mcmire Apr 5, 2023
bd9ff41
Update .mocharc.js
mcmire Apr 5, 2023
75c3996
Revert "Update .mocharc.js"
mcmire Apr 5, 2023
25eba32
Use an unrestricted messenger in tests, which is at least better
mcmire Apr 5, 2023
0b83122
Fix lint
mcmire Apr 5, 2023
6a035f2
Fix test failures
mcmire Apr 6, 2023
2498ef4
Merge branch 'develop' into convert-network-controller-to-ts
legobeat Apr 10, 2023
43b5c22
Merge branch 'convert-network-controller-to-ts' into convert-network-…
legobeat Apr 10, 2023
f3250bf
Merge branch 'develop' into convert-network-controller-to-ts
legobeat Apr 10, 2023
94e97fd
Merge branch 'convert-network-controller-to-ts' into convert-network-…
legobeat Apr 10, 2023
870625c
Merge branch 'develop' into convert-network-controller-to-ts
legobeat Apr 11, 2023
f2ab54f
Merge branch 'convert-network-controller-to-ts' into convert-network-…
legobeat Apr 11, 2023
48e8310
Merge branch 'develop' into convert-network-controller-tests-to-ts
mcmire Apr 11, 2023
5844779
Qualify the use of 'any'
mcmire Apr 11, 2023
b5402a6
Merge branch 'develop' into convert-network-controller-tests-to-ts
legobeat Apr 12, 2023
ac53668
never[] -> []
mcmire Apr 12, 2023
f27584c
Merge branch 'develop' into convert-network-controller-tests-to-ts
mcmire Apr 12, 2023
45f001b
Use function declarations for the functions within waitForPublishedEv…
mcmire Apr 12, 2023
1b03c16
Inline WithControllerOptions
mcmire Apr 12, 2023
a2717d2
Use PropertyKey
mcmire Apr 12, 2023
4dd0879
Simplify NetworkControllerOptionsWithInfuraProviderConfig
mcmire Apr 12, 2023
ace10d6
Merge branch 'develop' into convert-network-controller-tests-to-ts
mcmire Apr 12, 2023
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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ module.exports = {
'**/__snapshots__/*.snap',
'app/scripts/controllers/app-state.test.js',
'app/scripts/controllers/network/**/*.test.js',
'app/scripts/controllers/network/**/*.test.ts',
'app/scripts/controllers/network/provider-api-tests/*.js',
'app/scripts/controllers/permissions/**/*.test.js',
'app/scripts/lib/**/*.test.js',
Expand Down
Loading