Skip to content

Commit

Permalink
move mocha config to dotfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Feb 26, 2020
1 parent b463a99 commit 5931cae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/node_modules/**
**/node_modules/**
!.mocharc.js
6 changes: 6 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path');

module.exports = {
spec: path.join(__dirname, 'packages/**/test/**/**/**/*.spec.js'),
timeout: 30000
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"build": "yarn clean && node . build",
"serve": "yarn build && cd ./public && ws",
"develop": "yarn clean && node . develop",
"test": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && nyc mocha ./packages/**/test/**/**/*.spec.js --timeout 30000",
"test:tdd": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && mocha --watch ./packages/**/test/**/**/*.spec.js --timeout 15000"
"test": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && nyc mocha",
"test:tdd": "export BROWSERSLIST_IGNORE_OLD_DATA=true && yarn clean && mocha --watch"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const expect = require('chai').expect;
const TestBed = require('../../../../../test/test-bed');

describe('Build Greenwood With: ', function() {
describe.only('Build Greenwood With: ', function() {
let setup;

before(async function() {
Expand Down

0 comments on commit 5931cae

Please sign in to comment.