Skip to content

Commit

Permalink
s/tape/mocha&chai, add browser testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 24, 2020
1 parent 0fe94b5 commit 164d3f8
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 94 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [8.x, 10.x, 12.x, 14.x]
steps:
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"description": "A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise",
"main": "through2.js",
"scripts": {
"test": "npm run lint && hundreds node test/test.js",
"test:node": "hundreds mocha test/test.js",
"test:browser": "node -e 'process.exit(process.version.startsWith(\"v8.\") ? 0 : 1)' || polendina --cleanup --runner=mocha test/test.js",
"test": "npm run lint && npm run test:node && npm run test:browser",
"lint": "standard",
"coverage": "c8 --reporter=text --reporter=html node test/test.js && npx st -d coverage -p 8888"
"coverage": "c8 --reporter=text --reporter=html mocha test/test.js && npx st -d coverage -p 8888"
},
"repository": {
"type": "git",
Expand All @@ -26,9 +28,11 @@
},
"devDependencies": {
"bl": "^4.0.2",
"chai": "^4.2.0",
"hundreds": "~0.0.7",
"mocha": "^7.2.0",
"polendina": "^1.0.0",
"standard": "^14.3.4",
"stream-spigot": "^3.0.6",
"tape": "^5.0.1"
"stream-spigot": "^3.0.6"
}
}
Loading

0 comments on commit 164d3f8

Please sign in to comment.