mirror of
https://github.com/Cameri/nostream.git
synced 2025-10-11 09:02:30 +02:00
chore: add test:watch script
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
"db:migrate:rollback": "knex migrate:rollback",
|
"db:migrate:rollback": "knex migrate:rollback",
|
||||||
"db:seed": "knex seed:run",
|
"db:seed": "knex seed:run",
|
||||||
"start": "npm run build && node dist/index.js",
|
"start": "npm run build && node dist/index.js",
|
||||||
"test": "mocha -r ts-node/register 'test/**/*.spec.ts'"
|
"test": "mocha -r ts-node/register 'test/**/*.spec.ts'",
|
||||||
|
"test:watch": "npm run test -- --min --watch --watch-files src/**/*,test/**/*"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@@ -8,7 +8,6 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"baseUrl": "./src",
|
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"types": ["node", "mocha"],
|
"types": ["node", "mocha"],
|
||||||
"typeRoots": ["./node_modules/@types"],
|
"typeRoots": ["./node_modules/@types"],
|
||||||
@@ -23,6 +22,11 @@
|
|||||||
"ts-node": {
|
"ts-node": {
|
||||||
"transpileOnly": true
|
"transpileOnly": true
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": [
|
||||||
"exclude": ["node_modules", "test"]
|
"src/**/*.ts",
|
||||||
|
"test/**/*.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user