mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
@@ -73,7 +73,7 @@
|
|||||||
"doctoc": "doctoc docs/index.md --title '# RippleAPI Reference' --github --maxlevel 2",
|
"doctoc": "doctoc docs/index.md --title '# RippleAPI Reference' --github --maxlevel 2",
|
||||||
"docgen": "node --harmony scripts/build_docs.js",
|
"docgen": "node --harmony scripts/build_docs.js",
|
||||||
"prepublish": "yarn clean && yarn build",
|
"prepublish": "yarn clean && yarn build",
|
||||||
"test": "TS_NODE_PROJECT=src/tsconfig.json nyc mocha --exit",
|
"test": "TS_NODE_PROJECT=src/tsconfig.json nyc mocha --config=test/.mocharc.json --exit",
|
||||||
"test:watch": "TS_NODE_PROJECT=src/tsconfig.json mocha --watch --reporter dot",
|
"test:watch": "TS_NODE_PROJECT=src/tsconfig.json mocha --watch --reporter dot",
|
||||||
"format": "prettier --write '{src,test}/**/*.ts'",
|
"format": "prettier --write '{src,test}/**/*.ts'",
|
||||||
"lint": "eslint 'src/**/*.ts' 'test/*-test.{ts,js}'",
|
"lint": "eslint 'src/**/*.ts' 'test/*-test.{ts,js}'",
|
||||||
|
|||||||
21
test/.mocharc.json
Normal file
21
test/.mocharc.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"diff": true,
|
||||||
|
"spec": ["./test/*.ts"],
|
||||||
|
"extension": ["ts"],
|
||||||
|
"package": "../package.json",
|
||||||
|
"require": "ts-node/register",
|
||||||
|
"reporter": "spec",
|
||||||
|
"slow": 500,
|
||||||
|
"timeout": 5000,
|
||||||
|
"recursive": true,
|
||||||
|
"file": [],
|
||||||
|
"ui": "bdd",
|
||||||
|
"watch-files": [
|
||||||
|
"src/**/*.ts",
|
||||||
|
"test/**/*.ts"
|
||||||
|
],
|
||||||
|
"watch-ignore": [
|
||||||
|
"test/node_modules/**/*",
|
||||||
|
"test/vendor/**/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
--reporter spec
|
|
||||||
--timeout 5000
|
|
||||||
--slow 500
|
|
||||||
--require ts-node/register
|
|
||||||
--watch-extensions ts
|
|
||||||
./test/*.{ts,js}
|
|
||||||
Reference in New Issue
Block a user