-
Notifications
You must be signed in to change notification settings - Fork 78
Feature/lit 2921 js sdk migrate to jest #549
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
Open
joshLong145
wants to merge
152
commits into
master
Choose a base branch
from
feature/lit-2921-js-sdk-migrate-to-jest
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
152 commits
Select commit
Hold shift + click to select a range
53ffb2c
feat(test): setup jest testing environment
Ansonhkg 471b167
chore: update test command
Ansonhkg 40b54bb
chore: prettified
Ansonhkg 73111bd
fix(e2e-tests): Use Jest for example e2e tests, using `runInBand` con…
MaximusHaximus cc64a2d
fix(e2e-tests): Use test.each() to describe multiple test cases in a …
MaximusHaximus de240c9
dev: upgrade tests to use Tinny and fix TSC errors
be46a13
dev: add dotenv loading in setup
b0d9d99
dev: wip test migration
33573cc
ref: refactor test run command
87b6ed9
ref: remove invalid config option
fb17f72
dev: Migrate tests wip
1bff386
ci: remove filter flags wip
1a24a58
ref: refactor env pathing
7737f4c
chore: fmt
b64e39b
test: wip porting local-tests to jest
6faca67
ref: refactor tests for explicit test cases over iterator
e51fa27
Merge branch 'feat-datil-dev-yellowstone' of github.com:LIT-Protocol/…
ff8559c
ref: tweaks to test cases after refactor
a38d6a2
test: migrate wrapped keys tests
0dca2ea
ref: Migrate to explicit test cases
506ec01
test: add delegation tests
10779fe
chore: version bump
57c1857
ref: add back dep
57005ef
ref: refactor to explicit test cases
755f819
ref: change null to undefnied
7120a71
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
84af687
test: add in action combine tests
e5989d2
ci: add filter flag for test suite
f2840d2
ref: up test timeout
27dbea4
dev: Move Tinny to package
d1bd379
chore: package updates for jest (dev deps)
9b77385
ref: run tests parallel
3f63560
ref: remove session generators
ebe2f65
dev: update imports for tinny package
ca39af6
ref: add back yellow stone config
67da99a
docs: Add comment on pathing import
c962448
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
bb1ee3c
dev: formatting and ts ignore for formally incompatible types.
5b36051
ref: change TS version back to 4.x.x
cf59162
ref: revert package file changes
4063ceb
chore: upgrade `contracts` package to `0.0.39`
Ansonhkg df82e41
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
bb98694
chore: bump package version
3725969
ref: Fix type errors
305adaa
ref: test updates
7967d23
test: add timeout
432a2d2
ci: add explicit runners per test desc for now
fc76bda
ref: fix string literals
92e78af
chore: fmt
4e88606
ci: add run conditions
6de4c0b
dev: refactor wrapped keys tests
229b240
dev: add disconect calls in connect tests
a8e6be6
chore: sync package version
2301143
ref: cleanup
d2b41d1
chore: fmt
fa46163
dev: update setup for tinny
5569d37
dev: merge 'master'
8e6a523
dev: add network key to contract sdk init
413f999
ref: refactor contract context
fa0a968
dev: update jest hooks
2e69648
chore: fmt
ea5ef28
ref: Change import per jest docs
f13f07c
ref: aggregate Lti Action testing
22eb303
ref: move to explicit options
15d1299
chore: fmt
6d211b9
ref: remove test step
bcbf810
ref: fix test
1efe7a0
ref: change jest test runner
4387c4c
ci: change test run comand in ci for jest
6b06cc8
ref: change readme for new test runner
b17f63e
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
66318e0
add scope to e2e tests
6c5fec6
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
4e11c41
chore: update versions
d5f60ae
dev: update per review comments
4906a88
dev: update connection tests
e1ffd6c
dev: update tinny
6950c4e
ref: fix tsc errors
3959b1b
dev: ass eslint config and fix errors
84c02db
ref: use absolute import for export error
a238082
ref: cleanup and remove ipfs import
8bebfa1
ref: update localchain constant
709cced
chore: update env ci vals
5f345c7
ref: remove semicolon
1dabf5d
ref: update connection tests lifecycle
ab2b0b0
ref: switch to global devenv
3aba024
dep: add jest-enviroment-jsdom
39dfd56
chore: update lock file
4d1af2b
formatting and pr comments
14c4d90
ref: use expect over explicit check
d77b399
dev: Run eslint
215f4cf
ref: add ignore for undefined checks
34ac830
fix eslint ignores
6a2466c
ref: cleanup
7a66d3a
ref: tweaks for multiple jest standup ops in ci
493bf51
ref: add flag for tinny setup
68de37f
ci: add sync flag
e3f9720
dev: add key rlease to ethers and module caching
086308e
tests: release keys for pkp ethers tests
1ded6f9
ci: upgrade unit test
b3be546
ci: change test ci runner
b6568c4
ci: update unit test runner
32ba03b
ci: fix unit test runner
47f3bbd
ref: fix unit tests
e5a9294
ref: fmt
9e3bd1a
ref: fix ts-expect
05d2269
ref: refactor blocking calls for formatting
601aaf5
test: add mocks for console logging in logger spec
83fde6b
dev: remove tinny from e2e tests
5dc7874
test: move to lifecycle key management for TinnyPersons
b9d4487
test: refactor test user life cycle
ff35a3a
test: review comments
384bee5
test: test wrapping test cases in support network checks
47bec27
test: fix network check
1e6be9b
test: review comment updates
fc5a222
ci: remove install flags
867f5ee
chore: fmt
70bf215
ref: remove code coverage flag
a27b589
ref: add more test assertions
cb83f37
chore: remove `local-tests` directory
fea1450
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
a928974
chore: remove local test command
b66d228
chore: make tinny private
7ff7925
config: exclude tinny and e2e tests from release
41e2414
Merge branch 'master' into feature/lit-2921-js-sdk-migrate-to-jest
Ansonhkg 47d4216
Update packages/e2e-tests/setup.config.js
Ansonhkg 088cae1
Update packages/e2e-tests/src/tests/Delegation.spec.ts
Ansonhkg 81b7667
fix: oops sorry reverted, didn't realise it's a .js file
Ansonhkg aae05df
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
d16bd26
ref: changes per PR comments
d5d9e56
ref: remove message set in custom error constructor
110b011
docs: update comment on rpc
50c781f
ref: refactor RLI mintnig methods
659203b
dev: revert change to explict preset options to use nx presets with e…
291ec89
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
fa276b7
Merge branch 'feature/lit-2921-js-sdk-migrate-to-jest' of github.com:…
81888bd
test: fix property error in logger test
0307a30
test: update logger test case
1e53e0f
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
663ac03
chore: fmt
b0ef22a
ci: add missing container steps
c17d4d8
ref: type updates for session signatures
03255cc
ci: add rpc url
de2ce15
ref: add network context
84e8dd8
dev: upgrade tests to use Tinny and fix TSC errors
572fc98
dev: add dotenv loading in setup
8eafb70
dev: wip test migration
0aafdce
test: fix logging unit test
2db382c
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
00e8e74
ref: fix import
b644ec0
chore: update package versions
f595894
chore: fmt
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
/** | ||
* Direct link to nx presets | ||
* https://github.com/nrwl/nx/blob/master/packages/jest/preset/jest-preset.ts | ||
*/ | ||
const nxPreset = require('@nx/jest/preset').default; | ||
|
||
module.exports = { ...nxPreset }; | ||
const presets = { | ||
...nxPreset, | ||
}; | ||
|
||
presets.testEnviorment = 'node'; |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.