-
Notifications
You must be signed in to change notification settings - Fork 46.2k
feat(ci): add integration test job and rename e2e test job #11820
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
Merged
+52
−1
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
12f47ed
feat: Set up Vitest and React Testing Library for frontend testing an…
Abhi1992002 1a5010f
feat: Add unit testing scripts and configure Vitest for frontend testing
Abhi1992002 b22a409
feat: Introduce testing environment configuration and mock setup
Abhi1992002 6960ba8
refactor: clean up testing environment configuration and enhance test…
Abhi1992002 da978a7
feat: enhance testing setup and API schema
Abhi1992002 6e2c7ff
fix format
Abhi1992002 d9ca196
fix lint
Abhi1992002 25dbab8
fix: restore happy-dom dependency in package.json and pnpm-lock.yaml
Abhi1992002 1b4ced3
fix: update mock Supabase client to return session data
Abhi1992002 cd76330
Merge branch 'dev' into abhi/integration-test-setup
Abhi1992002 9ab5d17
chore: remove outdated AGENTS.md file from tests directory
Abhi1992002 3cdbd48
Merge branch 'dev' into abhi/integration-test-setup
Abhi1992002 d8bede1
chore: update CI workflow to include integration tests
Abhi1992002 7176f52
chore: update CI workflow to generate API client before running tests
Abhi1992002 4a2a6a3
chore: update CI workflow to generate API client without force option
Abhi1992002 4864c8d
fix format
Abhi1992002 53f6e86
Merge branch 'dev' into abhi/add-integration-tests-in-CI
Abhi1992002 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
15 changes: 15 additions & 0 deletions
15
...end/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsx
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { expect, test } from "vitest"; | ||
| import { render, screen } from "@/tests/integrations/test-utils"; | ||
| import { MainMarkeplacePage } from "../MainMarketplacePage"; | ||
| import { server } from "@/mocks/mock-server"; | ||
| import { getDeleteV2DeleteStoreSubmissionMockHandler422 } from "@/app/api/__generated__/endpoints/store/store.msw"; | ||
|
|
||
| // Only for CI testing purpose, will remove it in future PR | ||
| test("MainMarketplacePage", async () => { | ||
| server.use(getDeleteV2DeleteStoreSubmissionMockHandler422()); | ||
|
|
||
| render(<MainMarkeplacePage />); | ||
| expect( | ||
| await screen.findByText("Featured agents", { exact: false }), | ||
| ).toBeDefined(); | ||
| }); | ||
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.