Skip to content

Commit

Permalink
Fix and refactor celo e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ezdac committed Feb 3, 2025
1 parent b32aba1 commit a1cda98
Show file tree
Hide file tree
Showing 44 changed files with 2,665 additions and 7,828 deletions.
11 changes: 11 additions & 0 deletions op-e2e/celo/.default.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export CELOTEST_L2_RPCURL='http://localhost:9545'
export CELOTEST_L1_RPCURL='http://localhost:8545'
export CELOTEST_L1_CHAINID=900
export CELOTEST_L2_CHAINID=901
export CELOTEST_MONOREPOPATH='../../'
export CELOTEST_TESTDIRPATH='./tests/'
# m/44'/60'/0'/0/11 of "test test test test test test test test test test test junk":
export CELOTEST_FUNDER_PRIVATEKEY="0x701b615bbdfb9de65240bc28bd21bbc0d996645a3dd57e7b12bc2bdf6f192c82"
export CELOTEST_SPAWN_DEVNET=true
export CELOTEST_USE_FAULTPROOFS=true
export CELOTEST_USE_ALTDA=true
4 changes: 0 additions & 4 deletions op-e2e/celo/.prettierrc.toml

This file was deleted.

3 changes: 0 additions & 3 deletions op-e2e/celo/babel.config.cjs

This file was deleted.

21 changes: 21 additions & 0 deletions op-e2e/celo/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"tasks": {
"tests": "deno test --allow-read --allow-run --allow-net='127.0.0.1,localhost' --allow-env --env-file=.default.env --env-file=.env main.test.ts"
"cache-deps": "deno cache main.test.ts"
},
"workspace": [
"./packages/celo-test-runner",
"./packages/celo-test-util",
"./packages/celo-test-viem"
],
"imports": {
"@dx/reflect": "jsr:@dx/reflect@^0.2.14",
"@std/assert": "jsr:@std/assert@^1.0.11",
"@std/dotenv": "jsr:@std/dotenv@^0.225.3",
"@std/expect": "jsr:@std/expect@^1.0.12",
"@std/io": "jsr:@std/io@^0.225.1",
"@std/testing": "jsr:@std/testing@^1.0.9",
"reverse-mirage": "npm:reverse-mirage@^1.1.0",
"viem": "npm:viem@^2.22.16"
}
}
199 changes: 199 additions & 0 deletions op-e2e/celo/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions op-e2e/celo/jest.config.json

This file was deleted.

3 changes: 3 additions & 0 deletions op-e2e/celo/main.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { parseConfigWithPrefixFromEnv, run } from "@celo-test/runner";

await run(parseConfigWithPrefixFromEnv(Deno.env.toObject(), "CELOTEST"));
Loading

0 comments on commit a1cda98

Please sign in to comment.