Skip to content
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

create e2e test environment #84

Merged
merged 3 commits into from
Jan 18, 2024
Merged

create e2e test environment #84

merged 3 commits into from
Jan 18, 2024

Conversation

mouseless0x
Copy link
Member

@mouseless0x mouseless0x commented Jan 13, 2024

Goal is to have an as close to mainnet environment as possible. The e2e tests are focused on treating the bundler as a blackbox when testing its endpoints.

Went with docker-compose instead of the bash script because was too hard to orchestrate everything through bash.

For the e2e environment, it will spawn a local anvil + alto instance (separate docker containers), the EntryPoint and SimpleAccountFactroy will be deployed to the same address as mainnet (because of create2).

The e2e test cases are written in jest. And will be part of the CI pipeline.

Right now there is only one test for the eth_sendUserOperation endpoint, will add more later tests later

"@swc/core": "^1.3.56",
"@types/mocha": "^10.0.1",
"@biomejs/biome": "^1.5.1",
"@swc/core": "^1.3.102",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for you but I don't know why do we have this dependency, we don't use it anywhere.

.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
test/e2e/anvil/Dockerfile Outdated Show resolved Hide resolved
test/e2e/docker-compose.yml Outdated Show resolved Hide resolved
test/e2e/docker-compose.yml Outdated Show resolved Hide resolved
@mouseless0x mouseless0x merged commit bc99031 into main Jan 18, 2024
4 checks passed
@mouseless0x mouseless0x deleted the test/e2e branch January 18, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants