Skip to content

Commit

Permalink
Merge pull request #252 from lelylan/feature/use-ava-test-runner
Browse files Browse the repository at this point in the history
Use ava test runner and built-in assertions library
  • Loading branch information
jonathansamines authored Sep 23, 2019
2 parents e183c34 + ee17baa commit 0c952b7
Show file tree
Hide file tree
Showing 12 changed files with 3,677 additions and 1,398 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Next
### Dependencies upgrades

* Use ava instead of mocha as test runner
* Use ava built-in assertions library instead of chai

## 2.5.0
### Dependencies upgrades

Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Fork the repo on github and send a pull requests with topic branches to the ```d
* Fork and clone the repository (`develop` branch).
* Run `npm install` for dependencies.
* Run `npm test` to execute all specs.
* Run `npm run test-watch` to auto execute all specs when a file change.
* Run `npm run lint` to verify that all code pass our linting rules.

## Updating the docs
Expand Down
3,119 changes: 2,817 additions & 302 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
},
"scripts": {
"pretest": "npm run lint",
"test": "nyc mocha",
"posttest": "nyc check-coverage",
"test": "nyc ava",
"lint": "eslint .",
"fix": "eslint . --fix",
"test-watch": "mocha --watch --reporter=spec",
"docs-gen": "doctoc README.md --github --no-title",
"clean-install": "rm -rf node_modules && npm install"
},
Expand Down Expand Up @@ -50,15 +47,14 @@
"wreck": "^14.0.2"
},
"devDependencies": {
"chai": "^4.2.0",
"ava": "^2.4.0",
"chance": "^1.0.18",
"chance-access-token": "^1.0.1",
"doctoc": "^1.4.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-plugin-import": "^2.9.0",
"lodash": "^4.17.15",
"mocha": "^6.2.0",
"nock": "^10.0.6",
"nyc": "^14.1.1"
},
Expand Down
3 changes: 0 additions & 3 deletions test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
"rules": {
"max-len": "off",
"object-curly-newline": "off"
},
"env": {
"mocha": true
}
}
Loading

0 comments on commit 0c952b7

Please sign in to comment.