Repository navigation
Implement same-image e2e testing using mockhttp + self-signed cert #262
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
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
de9c800
implement same-image e2e testing using mockhttp + self-signed cert
fennifith 15568c7
fix ci
fennifith 0f9cc37
fix tsconfig.json: remove noImplicitReturns
fennifith 8c519ee
fix prettier
fennifith ed1fcf8
revert getAuthorGitHubStats.ts
fennifith a72c745
remove docker step from test.yml
fennifith 486e13c
improve e2e test setup
fennifith 3535f5c
fix typegen using dev server as an nx dependency
fennifith 1c4bc54
split proxy/e2e entrypoints, allow running tests outside of docker
fennifith 9d4b0fd
fix typegen check
fennifith a281c92
rework e2e, improve typegen script, enable multiple app instances in …
fennifith 8126db0
exclude e2e typegen from unit test tasks
fennifith 056cb00
make e2e eslint consistent with other packages, remove unused checks
fennifith c9c870f
refactor spawnApp to await using
fennifith 4449a34
use await using for docker cleanup
fennifith eed4703
check exit code when awaiting process
fennifith 788eef6
add docker:build dep to docker:start
fennifith 4e150ad
remove apps/e2e
fennifith 5d26833
pass configured prefix to bullmq FlowProducer
fennifith 026575c
configuration fixes
fennifith 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,21 @@ | ||
| .devcontainer | ||
| .env | ||
| .env.example | ||
| .git | ||
| .gitignore | ||
| .github | ||
| .husky | ||
| .lintstagedrc | ||
| .nvmrc | ||
| .nx | ||
| .pnpm-store | ||
| .prettier* | ||
| **/node_modules | ||
| **/dist | ||
| npm-debug.log | ||
| docker-compose.yml | ||
| Dockerfile | ||
| .lintstagedrc | ||
| .prettier* | ||
| .env | ||
| .env.example | ||
| fly.toml | ||
| knip.json | ||
| README.md | ||
| services |
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 |
|---|---|---|
|
|
@@ -31,6 +31,3 @@ | |
|
|
||
| vite.config.*.timestamp* | ||
| vitest.config.*.timestamp* | ||
|
|
||
| # Generated files | ||
| apps/e2e/src/generated/ | ||
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,4 @@ | ||
| pnpm-lock.yaml | ||
| drizzle | ||
| packages/post-images/tests/fixtures | ||
| e2e/tests/src/generated |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| services: | ||
| app: | ||
| build: . | ||
| image: playful-programming-hoof:latest | ||
| env_file: | ||
| - .env | ||
| environment: | ||
| NODE_USE_ENV_PROXY: 1 | ||
| NODE_EXTRA_CA_CERTS: /var/app/e2e/mocks/src/generated/cert.pem | ||
| HTTP_PROXY: http://proxy:3999 | ||
| HTTPS_PROXY: http://proxy:3999 | ||
| NO_PROXY: "localhost, 127.0.0.1" | ||
| S3_ENDPOINT: http://rustfs:9000 | ||
| POSTGRES_URL: postgresql://postgres:unicorn@pgsql:5432/${E2E_POSTGRES_DATABASE} | ||
| REDIS_URL: redis://redis:6379 | ||
| BULLMQ_PREFIX: ${E2E_BULLMQ_PREFIX} | ||
| volumes: | ||
| - ./e2e:/var/app/e2e:ro | ||
| networks: [shared] | ||
| ports: | ||
| - "${E2E_PORT}:3000" | ||
| healthcheck: | ||
| test: wget --no-verbose --tries=1 --spider http://0.0.0.0:3000 && wget --no-verbose --tries=1 --spider http://0.0.0.0:3001 || exit 1 | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| start_period: 20s | ||
| start_interval: 100ms | ||
| post_start: | ||
| - command: node packages/db/scripts/migrate.ts | ||
|
|
||
| networks: | ||
| shared: | ||
| name: hoof_shared_network | ||
| external: true | ||
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| src/generated |
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,5 @@ | ||
| // @ts-check | ||
|
|
||
| import rootConfig from "../../eslint.config.mjs"; | ||
|
|
||
| export default [...rootConfig]; |
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.