-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: snapshot of runtime exports (#10202)
closes: #10086 ## Description #10086 has been fixed by other PRs but still needed a regression test showing that runtime importing from `@agoric/orchestration` does not fail. This goes a step further and snapshots the list of exports, so that any changes are seen in code review. It also does it for a number of other active packages that tend to be imported outside the repo. ### Security Considerations none ### Scaling Considerations none ### Documentation Considerations none ### Testing Considerations It's a fast test. I also considered making a test in `boot` that iterated over the whole workspace, but I thought this would be an easier workflow and allow for more local tailoring. ### Upgrade Considerations none
- Loading branch information
Showing
28 changed files
with
283 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/async-flow'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'empty', | ||
'prepareAsyncFlowTools', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/inter-protocol'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'calculateCurrentDebt', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/internal'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'BASIS_POINTS', | ||
'BridgeId', | ||
'CosmosInitKeyToBridgeId', | ||
'NonNullish', | ||
'PromiseAllOrErrors', | ||
'StorageNodeShape', | ||
'UnguardedHelperI', | ||
'VBankAccount', | ||
'WalletName', | ||
'aggregateTryFinally', | ||
'allValues', | ||
'assertAllDefined', | ||
'bindAllMethods', | ||
'cast', | ||
'deepMapObject', | ||
'deeplyFulfilledObject', | ||
'forever', | ||
'fromUniqueEntries', | ||
'getMethodNames', | ||
'getStringMethodNames', | ||
'makeMeasureSeconds', | ||
'makeTracer', | ||
'mustMatch', | ||
'objectMap', | ||
'objectMetaMap', | ||
'synchronizedTee', | ||
'untilTrue', | ||
'whileTrue', | ||
'withDeferredCleanup', | ||
'zip', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/network'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'CLOSE_REASON_FINALIZER', | ||
'ENDPOINT_SEPARATOR', | ||
'Shape', | ||
'base64ToBytes', | ||
'byteSourceToBase64', | ||
'bytesToString', | ||
'coerceToByteSource', | ||
'crossoverConnection', | ||
'getPrefixes', | ||
'parse', | ||
'prepareEchoConnectionKit', | ||
'prepareLoopbackProtocolHandler', | ||
'prepareNetworkPowers', | ||
'prepareNetworkProtocol', | ||
'preparePortAllocator', | ||
'prepareRouter', | ||
'prepareRouterProtocol', | ||
'rethrowUnlessMissing', | ||
'toBytes', | ||
'unparse', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/orchestration'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Snapshot report for `test/exports.test.ts` | ||
|
||
The actual snapshot is saved in `exports.test.ts.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'AmountArgShape', | ||
'AnyNatAmountShape', | ||
'AnyNatAmountsRecord', | ||
'ChainAddressShape', | ||
'ChainInfoShape', | ||
'CosmosAssetInfoShape', | ||
'CosmosChainInfoShape', | ||
'DelegationShape', | ||
'DenomAmountShape', | ||
'DenomInfoShape', | ||
'DenomShape', | ||
'IBCChannelIDShape', | ||
'IBCChannelInfoShape', | ||
'IBCConnectionIDShape', | ||
'IBCConnectionInfoShape', | ||
'IBCTransferOptionsShape', | ||
'ICQMsgShape', | ||
'LocalChainAccountShape', | ||
'OutboundConnectionHandlerI', | ||
'Proto3Shape', | ||
'TimestampProtoShape', | ||
'TxBodyOptsShape', | ||
'TypedJsonShape', | ||
'chainFacadeMethods', | ||
'prepareChainHubAdmin', | ||
'prepareCosmosInterchainService', | ||
'withOrchestration', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/smart-wallet'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/vats'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'BridgeHandlerI', | ||
'BridgeManagerI', | ||
'BridgeScopedManagerI', | ||
'NameHubIKit', | ||
'makeAgoricNamesAccess', | ||
'makeNameHubKit', | ||
'makePromiseSpace', | ||
'makeScopedBridge', | ||
'prepareBridgeManager', | ||
'prepareMixinMyAddress', | ||
'prepareNameHubKit', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/vow'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'VowShape', | ||
'defaultPowers', | ||
'heapVowE', | ||
'heapVowTools', | ||
'makeE', | ||
'prepareSwingsetVowTools', | ||
'prepareVowTools', | ||
'toPassableCap', | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable import/no-extraneous-dependencies -- requiring the package itself to check exports map */ | ||
import test from 'ava'; | ||
|
||
import * as index from '@agoric/zoe'; | ||
|
||
test('index', t => { | ||
t.snapshot(Object.keys(index).sort()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Snapshot report for `test/exports.test.js` | ||
|
||
The actual snapshot is saved in `exports.test.js.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## index | ||
|
||
> Snapshot 1 | ||
[ | ||
'makeDurableZoeKit', | ||
'makeZoeKit', | ||
] |
Binary file not shown.