Skip to content

Commit 08b09c5

Browse files
committed
tests: convert to jest
1 parent a2466e8 commit 08b09c5

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "formidable",
3-
"version": "2.0.0-canary.20210212",
3+
"version": "2.0.0-canary.20210216",
44
"license": "MIT",
55
"description": "A node.js module for parsing form data, especially file uploads.",
66
"homepage": "https://github.com/node-formidable/formidable",
@@ -27,9 +27,9 @@
2727
"postreinstall": "yarn setup",
2828
"setup": "yarn",
2929
"pretest": "del-cli ./test/tmp && make-dir ./test/tmp",
30-
"test": "node test/run.js",
30+
"test": "jest --coverage",
3131
"pretest:ci": "yarn run pretest",
32-
"test:ci": "nyc node test/run.js",
32+
"test:ci": "nyc jest --coverage",
3333
"test:jest": "jest --coverage"
3434
},
3535
"dependencies": {
@@ -58,8 +58,7 @@
5858
"prettier": "2.0.5",
5959
"prettier-plugin-pkgjson": "0.2.8",
6060
"request": "2.88.2",
61-
"supertest": "4.0.2",
62-
"urun": "0.0.8"
61+
"supertest": "4.0.2"
6362
},
6463
"jest": {
6564
"verbose": true

test/run.js

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

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5856,11 +5856,6 @@ urix@^0.1.0:
58565856
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
58575857
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=
58585858

5859-
urun@0.0.8:
5860-
version "0.0.8"
5861-
resolved "https://registry.yarnpkg.com/urun/-/urun-0.0.8.tgz#3799a0293714c1115d326a4e69e2a5f96ee786e2"
5862-
integrity sha1-N5mgKTcUwRFdMmpOaeKl+W7nhuI=
5863-
58645859
use@^3.1.0:
58655860
version "3.1.1"
58665861
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"

0 commit comments

Comments
 (0)