Skip to content

Commit

Permalink
chore: Replace tap with Node test runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed Feb 6, 2024
1 parent 3460eda commit 01fa8d3
Show file tree
Hide file tree
Showing 3 changed files with 310 additions and 312 deletions.
10 changes: 3 additions & 7 deletions package.json
Expand Up @@ -35,8 +35,8 @@
"format": "prettier -w src test",
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx src test",
"typecheck": "tsc -p . --emitDeclarationOnly",
"test": "c8 -c test/config/c8-local.json tap test/*.test.ts",
"test:ci": "c8 -c test/config/c8-ci.json tap --no-color test/*.test.ts",
"test": "c8 -c test/config/c8-local.json node --import tsx test/index.test.ts",
"test:ci": "c8 -c test/config/c8-ci.json node --import tsx --test-reporter=tap test/index.test.ts",
"ci": "npm run build && npm run test:ci",
"prepublishOnly": "npm run ci",
"postpublish": "git push origin && git push origin -f --tags"
Expand All @@ -57,14 +57,10 @@
"concurrently": "^8.2.2",
"fastify": "^4.25.2",
"prettier": "^3.2.4",
"tap": "^18.7.0",
"ts-node": "^10.9.2",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
},
"engines": {
"node": ">= 18.18.0"
},
"tap": {
"extends": "./test/config/tap.yml"
}
}
2 changes: 0 additions & 2 deletions src/index.ts
Expand Up @@ -62,9 +62,7 @@ function printRoutes(routes: RouteOptions[], useColors: boolean, compact: boolea
const styler = useColors ? colorize : clean

// Sort and eventually unify routes
/* c8 ignore start */
routes = routes.filter(r => getRouteConfig(r).hide !== true && filter(r)).sort(sortRoutes)
/* c8 ignore end */

if (compact) {
routes = unifyRoutes(routes)
Expand Down

0 comments on commit 01fa8d3

Please sign in to comment.