forked from LIT-Protocol/js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update tests to gen pkps in setup for certain networks * logging and network config updates * add dynamic address and abi boostraping depedning on the network type. * move env loading out of setup * change to read from global * tweaks to test runners for jit pkps * fixes to network context resolve, and logging * add readme to e2e tests * changes to network resolving * remove unused imports * add custom to lit network types * fix staker contract resolving * add pkp with auth method to test env bootstrapping * fix failing tests from loader context * add response checks * fix test validation * fix: typo * fix to threshold resolve on chain * fixes to threshold parsing from chain * udpate readme * remove comment * fix up connection tests * up expiration time in generated siwe * change check from config assertion --------- Co-authored-by: Ansonhkg <[email protected]>
- Loading branch information
Showing
32 changed files
with
407 additions
and
412 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
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 @@ | ||
# End to End NodeJS testing | ||
|
||
End to end testing environment for different operations on the Lit Network | ||
- Message singing | ||
- Transaction signing | ||
- Session signature generation / signing | ||
- Lit Action api testing | ||
- LitContracts testing | ||
- Concurrency operation tests | ||
- 1 signature tests | ||
- multi signature tests | ||
|
||
|
||
## Usage | ||
To run all tests in all groups you can use the command | ||
`yarn test:e2e:node` | ||
|
||
Each test suite is contained in a single folder which is called a `group` groups can be filtered by the `filter` flag | ||
|
||
`yarn test:e2e:node --group=lit-actions` | ||
In the above example, only tests in the `group-lit-actions` will run as group flags omit the `group` prefix | ||
|
||
`yarn test:e2e:node --group=lit-actions --filter=1-sig` | ||
In the above example, we only run the `lit-actions` test group with a filter on the `test-lit-action-1-sig` which is reduced to `1-sig` from the `group` flag | ||
|
||
## environment Configuration | ||
``` | ||
NETWORK = cayenne | internalDev #Configures the network context for the test run | ||
DEBUG = true | false # Turns on or off logging | ||
CHECK_SEV = true | false # Configures checking of sev snp attestation reports | ||
MINT_NEW = true | false # Enables provisioning of new keys for the test run | ||
``` |
28 changes: 0 additions & 28 deletions
28
e2e-nodejs/group-connection/test-connection-internal-dev.mjs
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.