Skip to content

Commit

Permalink
Replace grunt-cafe-mocha with grunt-mocha-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 9, 2018
1 parent 2e5cd73 commit 90c372d
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 116 deletions.
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(grunt) {
const fixturesSrc = 'test/fixtures/**/*.js';

grunt.initConfig({
cafemocha: {
mochaTest: {
options: {
reporter: 'spec'
},
Expand All @@ -19,23 +19,23 @@ module.exports = function(grunt) {
watch: {
tasks: {
files: tasksSrc,
tasks: ['cafemocha']
tasks: ['mochaTest']
},
test: {
files: testSrc,
tasks: ['cafemocha']
tasks: ['mochaTest']
},
fixtures: {
files: fixturesSrc,
tasks: ['cafemocha']
tasks: ['mochaTest']
}
}
});

grunt.loadNpmTasks('grunt-cafe-mocha');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('test', ['cafemocha']);
grunt.registerTask('test', ['mochaTest']);

grunt.registerTask('default', ['test']);
};
173 changes: 64 additions & 109 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
"eslint": "^5.6.1",
"eslint-config-tschaub": "^12.0.1",
"grunt": "^1.0.3",
"grunt-cafe-mocha": "^0.1.13",
"grunt-cli": "^1.3.1",
"grunt-contrib-watch": "^1.1.0",
"grunt-mocha-test": "^0.13.3",
"mocha": "^5.2.0",
"tmp": "^0.0.33"
},
"peerDependencies": {
Expand Down

0 comments on commit 90c372d

Please sign in to comment.