Skip to content

Commit

Permalink
switch to jest
Browse files Browse the repository at this point in the history
  • Loading branch information
steambap committed Mar 27, 2023
1 parent cf65234 commit 08a88a6
Show file tree
Hide file tree
Showing 6 changed files with 2,744 additions and 7 deletions.
1 change: 0 additions & 1 deletion test/integration.js → __tests__/integration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const Koa = require("koa");
const request = require("supertest");
const expect = require("expect");
const Router = require("../router");

describe("Router", () => {
Expand Down
1 change: 0 additions & 1 deletion test/routegroup-spec.js → __tests__/routegroup-spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const expect = require("expect");
const Router = require("../router");
const RouteGroup = require("../routegroup");

Expand Down
1 change: 0 additions & 1 deletion test/router-spec.js → __tests__/router-spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const expect = require("expect");
const Router = require("../router");

const noOp = function() {};
Expand Down
1 change: 0 additions & 1 deletion test/tree-spec.js → __tests__/tree-spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const expect = require("expect");
const Tree = require("../tree");

Tree.prototype.printTree = function(prefix = "") {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A high performance koa router",
"main": "router.js",
"scripts": {
"test": "mocha"
"test": "jest"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,9 +33,8 @@
"homepage": "https://github.com/steambap/koa-tree-router#readme",
"typings": "index.d.ts",
"devDependencies": {
"expect": "^27.2.0",
"jest": "^29.5.0",
"koa": "^2.14.1",
"mocha": "^9.1.1",
"supertest": "^6.2.3"
},
"dependencies": {
Expand Down

0 comments on commit 08a88a6

Please sign in to comment.