Improve tests execution.
This commit is contained in:
parent
60a278490f
commit
3183ca02b3
3
packages/xo-server-auth-ldap/.mocha.js
Normal file
3
packages/xo-server-auth-ldap/.mocha.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
try { require('clarify') } catch (_) {}
|
||||||
|
try { require('trace') } catch (_) {}
|
||||||
|
try { require('source-map-support/register') } catch (_) {}
|
1
packages/xo-server-auth-ldap/.mocha.opts
Normal file
1
packages/xo-server-auth-ldap/.mocha.opts
Normal file
@ -0,0 +1 @@
|
|||||||
|
--require ./.mocha.js
|
@ -30,22 +30,26 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel": "^5",
|
"babel": "^5",
|
||||||
|
"babel-eslint": "^3.1.15",
|
||||||
|
"clarify": "^1.0.5",
|
||||||
"mocha": "^2.2.5",
|
"mocha": "^2.2.5",
|
||||||
"must": "^0.12.0",
|
"must": "^0.12.0",
|
||||||
"sinon": "^1.15.3",
|
"sinon": "^1.15.3",
|
||||||
"source-map-support": "^0.3.1",
|
"source-map-support": "^0.3.1",
|
||||||
"standard": "^4.2.1"
|
"standard": "^4.2.1",
|
||||||
|
"trace": "^1.2.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "mkdir -p dist && babel --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
|
"build": "mkdir -p dist && babel --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
|
||||||
"dev": "mkdir -p dist && babel --watch --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
|
"dev": "mkdir -p dist && babel --watch --optional=runtime --compact=true --source-maps --out-dir=dist/ src/",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"test": "standard && npm run build && mocha 'dist/**/*.spec.js'",
|
"test": "mocha --opts .mocha.opts \"dist/**/*.spec.js\"",
|
||||||
"test-dev": "standard && mocha --watch --reporter=min 'dist/**/*.spec.js'"
|
"test-dev": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\""
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"dist/**"
|
"dist/**"
|
||||||
]
|
],
|
||||||
|
"parser": "babel-eslint"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user