Skip to content

Commit

Permalink
Use configuration file for Mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
aswitalski committed Apr 17, 2020
1 parent 0a149d1 commit c6cfb6c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require('./test/config/init.js');

module.exports = {
colors: true,
diff: true,
extension: ['.js'],
package: './package.json',
reporter: 'spec',
slow: 250,
sort: true,
timeout: 2000,
ui: 'bdd',
'watch-files': ['src/**/*.js', 'test/**/*.js'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Opera Web UI Toolkit",
"main": "index.js",
"scripts": {
"test": "mocha",
"test": "mocha 'test/**/*.spec.js'",
"test:server": "node test/server.js",
"demo": "node demo/server.js",
"coverage": "nyc mocha",
Expand Down
8 changes: 0 additions & 8 deletions test/mocha.opts

This file was deleted.

0 comments on commit c6cfb6c

Please sign in to comment.