mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
This PR adds the basic framework for E2E and the greater typescript testing framework for the repo. ### Contents - CI workflow for running E2E tests on push to main, PRs and manual - Test suite for E2E - Currently only read-only tests - Using `bun:test` for time being but we can always change in future - We are using the logging library `pino` so we can help with debugging - set environment variable `LOG_LEVEL` to get extra information on helpers - Local `utils` namespace for all our test suites for easy importing - Has helpers which interact with both the docker driver and also blockscout backend - Allows us to fetch deployed smart contracts by their name or address and interact with them --------- Co-authored-by: Facundo Farall <37149322+ffarall@users.noreply.github.com>
35 lines
1.1 KiB
JSON
35 lines
1.1 KiB
JSON
{
|
|
"name": "@datahaven/e2e-test",
|
|
"module": "index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"fmt": "biome check .",
|
|
"fmt:fix": "biome check --write .",
|
|
"demo": "bun run scripts/placeholder.ts",
|
|
"start:e2e:verified": "bun run scripts/start-kurtosis.ts --verified",
|
|
"start:e2e:minimal": "bun run scripts/start-kurtosis.ts",
|
|
"stop:e2e": "kurtosis enclave stop datahaven-ethereum && kurtosis clean && kurtosis engine stop && docker container prune -f",
|
|
"stop:e2e:verified": "bun stop:e2e",
|
|
"stop:e2e:minimal": "bun stop:e2e",
|
|
"stop:kurtosis-engine": "kurtosis engine stop && docker container prune -f",
|
|
"test:e2e": "bun test suites/e2e"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5"
|
|
},
|
|
"dependencies": {
|
|
"@biomejs/biome": "^1.9.4",
|
|
"@dotenvx/dotenvx": "^1.39.0",
|
|
"@types/dockerode": "^3.3.37",
|
|
"dockerode": "^4.0.5",
|
|
"dotenv": "^16.4.7",
|
|
"pino": "^9.6.0",
|
|
"pino-pretty": "^13.0.0",
|
|
"tiny-invariant": "^1.3.3",
|
|
"viem": "^2.25.0"
|
|
}
|
|
}
|