Commit 558cc20
Test suite (#51)
* build(deps): add Playwright
* build(deps,scripts): add Happy DOM, Bun types, RTL, unit and E2E test scripts
* feature: add bunfig.toml, test setup
* chore(knip): add test config
* build(deps,scripts): add 'ms', dedicated Next.js dev script
* build(deps): add msw, msw graphql codegen plugin
* feature(graphql): add MSW plugin
* docs(readme): update instructions for test env vars
* feature: add Playwright config
* ci: add test workflow
* ci(test): set artifact name with shard ID
* ci(test): set artifact path with shard ID
* ci(test): correct shard artifacts (use proper job)
* ci(test): resolve invalid character error
* ci(test): resolve invalid character error
* ci(test): iterate over uploaded blob reports for merge
* ci(test): fix merge iteration
* ci(test): fix merge iteration
* ci(test): disable merge job, add discussion TODO
* ci(test): update TODO
* test(e2e,auth): add basic auth (sign in) test
* ci(test): add test credential env vars
* chore(test,auth): remove brackets
* ci(test): add debug flag
* docs(env): improve comment
* ci(test): set Bun setup action version from v1 to v2, remove latest flag
* test(e2e): add CI test tests
* test(e2e): implement page object model pattern with fixtures
* ci(test): fix Playwright shard execution
* test(e2e,auth): remove example tests
* ci(test): add env vars
* ci(test): fix env var access typo
* ci(test): inject '.env.test' to E2E job
* feature(env): add test env var file
* build(deps,scripts): create proxy unit test script, add GraphQL Codegen import types preset, add msw to trusted deps, upgrade deps
* feature(scripts): add unit test execution script
* chore(test,playwright): add TODO
* test: add mocks
* chore(test,e2e,auth): add TODO
* docs: add JSDoc
* test(e2e,msw): inject MSW Node.js server instance
* chore(knip): update config
* refactor(env): update exports, knip ignores
* docs(graphql): fix typo
* style(feature-card): center content
* chore(graphql): update generated artifacts
* fix: track graphql.mock.ts artifact
* ci(test): add debug step
* refactor(scripts,test): 'zsh' -> 'sh'
* test: use zsh
* fix: fix glob expansion for non-zsh shells
* fix: fix glob expansion for non-zsh shells
* fix: fix glob expansion for non-zsh shells
* test: replace test shell script with package.json script
* feature: add MSW browser service worker and config
* test(mocks): add HIDRA and WalletConnect handlers
* chore(e2e,auth): add warning about app router support
* ci(test): remove Playwright debug flag
* ci(test): conditionally upload test result artifacts
* ci(test): disable sharding
* build(deps,scripts): add RTL extensions, fix Bun test pattern match
* test: enhance unit test setup file
* test: add custom render implementation
* test: add theme toggle tests
* ci(test): inject WalletConnect project ID env var to unit test job
* test(theme-toggle): add TODO
* test(unit): add more providers to custom 'render'
* test(msw): initialize MSW fixtures on app start behind feature flag
* test: add home page (todo), landing page tests
* test(mocks): add and inject Next.js app router mocks
* docs: add JSDoc to test files
* test: add skipped dashboard page test
* docs: add MSW unit test integration reference article
* docs(handlers,walletconnect): remove trailing slash
* build(deps): upgrade web3 dependencies
* chore(graphql): enable shared add plugin in mock artifacts
* chore: format
* docs(tests,theme-toggle): update TODO
* docs(tests,theme-toggle): update TODO
* ci: trigger build
* chore(knip): update test patterns
* docs(readme): remove instructions for test env vars
* build(scripts): explicitly inject env var files into test scripts
* chore(package): move msw config so it doesn't get lost in the sauce
* build(deps): upgrade dependencies
* chore: format
* ci(test): remove E2E test artifact upload job
* chore: update mock user ID env var name
* build(deps): add ms DT types
* fix(docker): fix build
* build(deps): upgrade knip, typescript
* chore(ts): set bun module types explicitly for language server support
* chore: remove instances of `BlockchainProvider` in test files
* build(deps): remove '@types/bun'
* chore: format
* build(deps): upgrade dependencies
* chore: format
* fix: fix build issues
* ci: trigger build
* chore: remove WalletConnect content
* chore(playwright): remove unused import
Co-authored-by: Beau Hawkinson <72956780+Twonarly1@users.noreply.github.com>
* ci(test): pin Bun 1.1.42
---------
Co-authored-by: Beau Hawkinson <72956780+Twonarly1@users.noreply.github.com>1 parent 022e2c0 commit 558cc20
File tree
54 files changed
+1995
-391
lines changed- .github/workflows
- public
- src
- __mocks__
- handlers
- user
- __tests__
- app
- organizations/[organizationSlug]/projects
- components
- dashboard
- DashboardPage
- PinnedOrganizations
- landing
- FeatureCard
- LandingPage
- layout
- AccountInformation
- ThemeToggle
- organization
- CreateOrganization
- OrganizationActions
- OrganizationList
- OrganizationOverview
- OrganizationProjectsOverview
- OrganizationsOverview
- project/ProjectList
- generated
- lib
- config
- graphql
- test
- e2e
- fixtures/pages
- util
- unit/util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54 files changed
+1995
-391
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
0 commit comments