fix docker build, add proper mocks to tests, remove YouTubeAPI dependency on youtube test mock, move index.ts and test.ts to /src ant /test folders

This commit is contained in:
Dainius Dauksevicius
2020-10-20 22:56:07 +03:00
parent 62b008e693
commit 12729b36fb
17 changed files with 365 additions and 207 deletions

View File

@@ -2,12 +2,13 @@
"name": "sponsor_block_server",
"version": "0.1.0",
"description": "Server that holds the SponsorBlock database",
"main": "index.ts",
"main": "src/index.ts",
"scripts": {
"test": "ts-node test.ts",
"test": "ts-node test/test.ts",
"dev": "nodemon -x \"(npm test || echo test failed) && npm start\"",
"dev:bash": "nodemon -x 'npm test ; npm start'",
"start": "ts-node index.ts"
"start": "ts-node src/index.ts",
"tsc": "tsc -p tsconfig.json"
},
"author": "Ajay Ramachandran",
"license": "MIT",
@@ -35,6 +36,8 @@
"@types/request": "^2.48.5",
"mocha": "^7.1.1",
"nodemon": "^2.0.2",
"sinon": "^9.2.0",
"ts-mock-imports": "^1.3.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
}