Skip to content

Commit

Permalink
Use test-director and hard-rejection for tests instead of tap.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Mar 24, 2020
1 parent f8f1195 commit 4035284
Show file tree
Hide file tree
Showing 23 changed files with 1,427 additions and 1,319 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Expand Up @@ -3,4 +3,3 @@ node_modules
/universal
/server
/test
tap-snapshots
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,3 @@ npm-debug.log
/universal
/server
/test
.nyc_output
2 changes: 0 additions & 2 deletions .prettierignore
@@ -1,3 +1 @@
package.json
.nyc_output
tap-snapshots
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -6,6 +6,7 @@

- Updated Node.js support from v8.10+ to v10+.
- Updated dependencies, some of which require Node.js v10+.
- Replaced the [`tap`](https://npm.im/tap) dev dependency with [`test-director`](https://npm.im/test-director) and [`hard-rejection`](https://npm.im/hard-rejection), and refactored tests accordingly. This improves the dev experience and reduced the dev install size by ~75.5 MB.

### Patch

Expand Down
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -71,6 +71,7 @@
"formdata-node": "^2.1.1",
"graphql": "^14.6.0",
"graphql-api-koa": "^4.1.1",
"hard-rejection": "^2.1.0",
"jsdoc-md": "^5.0.1",
"koa": "^2.7.0",
"koa-bodyparser": "^4.3.0",
Expand All @@ -79,7 +80,7 @@
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"size-limit": "^4.4.0",
"tap": "^14.10.7"
"test-director": "^4.0.0"
},
"scripts": {
"prepare": "npm run prepare:clean && npm run prepare:mjs && npm run prepare:js && npm run prepare:jsdoc && npm run prepare:prettier",
Expand All @@ -88,10 +89,11 @@
"prepare:js": "babel src -d .",
"prepare:jsdoc": "jsdoc-md",
"prepare:prettier": "prettier '{universal,server,test}/**/*.{mjs,js}' readme.md --write",
"test": "npm run test:eslint && npm run test:prettier && npm run test:tap && npm run test:size",
"test": "npm run test:eslint && npm run test:prettier && npm run test:esm && npm run test:cjs && npm run test:size",
"test:eslint": "eslint . --ext mjs,js",
"test:prettier": "prettier '**/*.{json,yml,md}' -l",
"test:tap": "tap test/*.{mjs,js}",
"test:esm": "if node --input-type=module -e '' > /dev/null 2>&1; then node -r hard-rejection/register test/index.mjs; fi",
"test:cjs": "node -r hard-rejection/register test",
"test:size": "size-limit",
"prepublishOnly": "npm test"
}
Expand Down

0 comments on commit 4035284

Please sign in to comment.