Feat(#133): run e2e tests in parallel (#164)

* feat: run e2e tests in paralell + refactor test setup

* fix: open handle issue

* fix: sequencer finalized tag test issue + clean l2.spec tests

* fix: refactor config structure

* fix: genesis path issue

* fix: pnpm lock file issue

* fix: make each test run concurrently

* fix: remove nested describes in tests

* fix: refactor coordinator tests + add global L2 traffic generation

* fix: change l2 genesis file for getting whale accounts + refactor utils function

* fix: refactor coordinator restart util function

* fix: remove conflation e2e tests

* fix: add environment variable in e2e test ci workflowk

* fix: coordinator restart test issue

* fix: instanciate account manager only once per test file

* fix: add restart option to zkbesu shomei and postman in docker compose file

* fix: remove getAndIncreaseFeeData function and unsed utils functions

* fix: increase messaging L2 to l1 timeout
This commit is contained in:
Victorien Gauch
2024-10-15 19:26:23 +02:00
committed by GitHub
parent bb78efe353
commit 215b60c9f0
46 changed files with 2754 additions and 3431 deletions

View File

@@ -8,30 +8,25 @@
"lint:ts:fix": "npx eslint --fix '**/*.{js,ts}'",
"prettier": "prettier -c '**/*.{js,ts}'",
"prettier:fix": "prettier -w '**/*.{js,ts}'",
"test:e2e:local": "npx jest --config ./jest.local.config.ts --runInBand",
"test:e2e:local:testenv": "npx jest --config ./jest.local.config.ts --runInBand --globalSetup ./env-setup/global-setup.ts --setupFilesAfterEnv ./env-setup/setup-local-deploy.ts --globalTeardown ./env-setup/global-teardown.ts",
"test:e2e:dev": "npx jest --config ./jest.dev.config.ts --bail --runInBand --testPathIgnorePatterns=restart.spec.ts",
"test:e2e:uat": "npx jest --config ./jest.uat.config.ts --bail --runInBand --testPathIgnorePatterns=restart.spec.ts",
"test:e2e:uat:shadow": "npx jest --config ./jest.uat.config.ts --bail --runInBand --testPathIgnorePatterns=restart.spec.ts",
"postinstall": "typechain --target ethers-v5 --out-dir ./src/typechain './src/abi/*.json'",
"test:e2e:vscode": "npx jest --config ./jest.vscode.config.ts --runInBand --detectOpenHandles --forceExit",
"test:e2e:local": "TEST_ENV=local npx jest",
"test:e2e:dev": "TEST_ENV=dev npx jest --config ./jest.testnet.config.ts --bail --runInBand --testPathIgnorePatterns=restart.spec.ts",
"test:e2e:sepolia": "TEST_ENV=sepolia npx jest --config ./jest.testnet.config.ts --bail --runInBand --testPathIgnorePatterns=restart.spec.ts",
"postinstall": "typechain --target ethers-v6 --out-dir ./src/typechain './src/abi/*.json'",
"lint:fix": "pnpm run lint:ts:fix && pnpm run prettier:fix",
"clean": "rimraf node_modules"
"clean": "rimraf node_modules src/typechain"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@ethersproject/providers": "5.7.2",
"@jest/globals": "29.7.0",
"@openzeppelin/upgrades-core": "1.33.1",
"@typechain/ethers-v5": "11.1.2",
"@types/jest": "29.5.12",
"@typechain/ethers-v6": "0.5.1",
"@types/jest": "29.5.13",
"child_process": "1.0.2",
"dotenv": "16.4.5",
"ethers": "5.7.2",
"ethers": "6.13.3",
"jest": "29.7.0",
"testcontainers": "10.9.0",
"ts-jest": "29.1.2",
"ts-jest": "29.2.5",
"typechain": "8.3.2"
}
}