Skip to content

Commit

Permalink
Update the node:test example with a better reporter
Browse files Browse the repository at this point in the history
node:test's default reporter is really limted, and doesn't print the
errors that earl generates in a nice way. I replaced it with a better
one, which behaves like mocha.
  • Loading branch information
alcuadrado committed May 17, 2024
1 parent 67d4794 commit 7137661
Show file tree
Hide file tree
Showing 2 changed files with 514 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/example-node-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
"lint": "biome check ./src",
"lint:fix": "biome check --apply ./src",
"typecheck": "tsc --noEmit",
"test": "node --test --loader ts-node/esm src/*.test.ts",
"test": "node --test --test-reporter=@voxpelli/node-test-pretty-reporter --loader ts-node/esm src/*.test.ts",
"test:fix": "pnpm lint:fix && pnpm format:fix && pnpm test && pnpm typecheck"
},
"dependencies": {
"earl": "workspace:^1.2.1"
},
"devDependencies": {
"@voxpelli/node-test-pretty-reporter": "^1.1.1"
}
}
Loading

0 comments on commit 7137661

Please sign in to comment.