Skip to content

Commit

Permalink
try c8
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Sep 18, 2024
1 parent 74bbec1 commit 6cae021
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 4 deletions.
8 changes: 8 additions & 0 deletions c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extension": [".ts"],
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"reporter": ["html", "text", "lcov"],
"all": true,
"require": ["ts-node/register"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "tsc",
"dev": "ts-node-dev --respawn src/index.ts | pino-pretty --singleLine --colorize --ignore time,hostname,ip",
"start": "node dist/index.js",
"start:coverage": "pm2 start --name relayer 'nyc node -r ts-node/register src/index.ts' && ./scripts/health-check.sh",
"start:coverage": "pm2 start --name relayer 'c8 node -r ts-node/register src/index.ts' && ./scripts/health-check.sh",
"stop:coverage": "pm2 stop relayer && pm2 delete relayer",
"start:test-infra": "docker compose up",
"test": "vitest src/__tests__/*.test.ts --singleThread --run",
Expand All @@ -32,6 +32,7 @@
"@polkadot/api": "^10.9.1",
"axios": "^0.26.1",
"bech32": "^2.0.0",
"c8": "^10.1.2",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"envalid": "^8.0.0",
Expand Down
Loading

0 comments on commit 6cae021

Please sign in to comment.