Skip to content

Commit 5e32862

Browse files
committed
chore: migrate tests to vitest
1 parent 724ff55 commit 5e32862

14 files changed

Lines changed: 560 additions & 2413 deletions

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ Duo especially thanks [Lukas Hroch](https://github.com/lukashroch) for creating
1212

1313
## Getting Started
1414

15-
This library requires Node.js v14 or later.
15+
This library requires Node.js LTS (v18 or later).
1616

17-
To use this client in your existing developing environment, install it from NPM
17+
To use this client in your existing developing environment, install it with your package manager of choice.
1818

1919
```sh
2020
npm install @duosecurity/duo_universal
21+
22+
pnpm add @duosecurity/duo_universal
23+
24+
yarn add @duosecurity/duo_universal
2125
```
2226

2327
Once it's installed, see our developer documentation at https://duo.com/docs/duoweb and the `example` folder in this repo for guidance on integrating Duo 2FA into your web application.

jest.config.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,24 @@
4141
"build": "tsup --env.NODE_ENV production",
4242
"prepublishOnly": "pnpm build",
4343
"lint": "eslint ./src --fix",
44-
"test": "jest",
45-
"test:coverage": "pnpm test -- --coverage",
46-
"test:watch": "pnpm test -- --watch"
44+
"test": "vitest",
45+
"test:coverage": "vitest run --coverage"
4746
},
4847
"dependencies": {
4948
"axios": "^1.7.9",
5049
"jose": "^5.9.6"
5150
},
5251
"devDependencies": {
5352
"@eslint/js": "^9.18.0",
54-
"@types/jest": "^29.5.14",
5553
"@types/node": "^22.10.6",
54+
"@vitest/coverage-v8": "3.0.2",
5655
"eslint": "^9.18.0",
5756
"eslint-config-prettier": "^10.0.1",
5857
"eslint-plugin-prettier": "^5.2.2",
59-
"jest": "^29.7.0",
60-
"jest-extended": "^4.0.2",
6158
"prettier": "^3.4.2",
62-
"ts-jest": "^29.2.5",
63-
"ts-node": "^10.9.2",
6459
"tsup": "^8.3.5",
6560
"typescript": "^5.7.3",
66-
"typescript-eslint": "^8.20.0"
61+
"typescript-eslint": "^8.20.0",
62+
"vitest": "^3.0.2"
6763
}
6864
}

0 commit comments

Comments
 (0)