Skip to content

Commit

Permalink
Move testing to ava (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva authored and sindresorhus committed Jul 23, 2017
1 parent e8d28f3 commit 4c4eb1f
Show file tree
Hide file tree
Showing 10 changed files with 371 additions and 356 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -8,7 +8,7 @@
"node": ">=4"
},
"scripts": {
"test": "xo && nyc mocha",
"test": "xo && nyc ava",
"bench": "matcha benchmark.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
Expand Down Expand Up @@ -45,11 +45,11 @@
"supports-color": "^4.0.0"
},
"devDependencies": {
"ava": "*",
"coveralls": "^2.11.2",
"execa": "^0.7.0",
"import-fresh": "^2.0.0",
"matcha": "^0.7.0",
"mocha": "*",
"nyc": "^11.0.2",
"resolve-from": "^3.0.0",
"xo": "*"
Expand Down
353 changes: 0 additions & 353 deletions test.js

This file was deleted.

2 changes: 1 addition & 1 deletion fixture.js → test/_fixture.js
@@ -1,4 +1,4 @@
'use strict';
const chalk = require('.');
const chalk = require('..');

console.log(chalk.hex('#ff6159')('test'));
13 changes: 13 additions & 0 deletions test/_supports-color.js
@@ -0,0 +1,13 @@
'use strict';
const resolveFrom = require('resolve-from');

module.exports = dir => {
require.cache[resolveFrom(dir, 'supports-color')] = {
exports: {
level: 3,
hasBasic: true,
has256: true,
has16m: true
}
};
};

0 comments on commit 4c4eb1f

Please sign in to comment.