chore: add test:watch script

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-08-07 03:21:56 +00:00
parent 6f26ac8fd6
commit b3b05f8ae0
No known key found for this signature in database
GPG Key ID: 5931EBF43A650245
2 changed files with 9 additions and 4 deletions

View File

@ -15,7 +15,8 @@
"db:migrate:rollback": "knex migrate:rollback",
"db:seed": "knex seed:run",
"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": {
"type": "git",

View File

@ -8,7 +8,6 @@
"allowSyntheticDefaultImports": true,
"target": "es6",
"outDir": "./dist",
"baseUrl": "./src",
"moduleResolution": "Node",
"types": ["node", "mocha"],
"typeRoots": ["./node_modules/@types"],
@ -23,6 +22,11 @@
"ts-node": {
"transpileOnly": true
},
"include": ["src"],
"exclude": ["node_modules", "test"]
"include": [
"src/**/*.ts",
"test/**/*.ts"
],
"exclude": [
"node_modules"
]
}