I'm trying to fork & maintain this code-push-server on this repo, https://github.com/CodePushNext/code-push-server, and struggling to find a way to run test for this server.
What I cannot understand is, there's no test command script, testing runtime framework in devDependencies of package.json, even no babel configuration with typescript test code.
Is there any test guide line that we could start from?
Lukas Cenovsky (@lucen-ms) Dmitriy Kirakosyan (@DmitriyKirakosyan) Djordje (@DordeDimitrijev)
{
"name": "code-push-server",
"version": "0.0.1",
"description": "Source code for the CodePush service API",
"main": "./script/server.js",
"scripts": {
"start": "node ./bin/script/server.js",
"start:env": "node -r dotenv/config ./bin/script/server.js dotenv_config_path=.env dotenv_config_silent=true",
"clean": "rimraf bin",
"build": "tsc && shx cp -r ./script/views ./bin/script",
"prettier": "prettier --write \"./**/*.ts\"",
"lint": "npx eslint ./script/**/*.ts",
"lint:fix": "npx eslint ./script/**/*.ts --fix"
},
"devDependencies": {
"@types/express": "^4.17.17",
"@types/jest": "^29.5.1",
"@types/mocha": "^10.0.1",
"@types/multer": "^1.4.7",
"@types/node": "^20.1.4",
"@types/q": "^1.5.5",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"dotenv": "^16.0.3",
"eslint": "^8.45.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"shx": "^0.3.4",
"supertest": "^6.3.3",
"typescript": "^5.0.4"
}
}
I'm trying to fork & maintain this code-push-server on this repo, https://github.com/CodePushNext/code-push-server, and struggling to find a way to run test for this server.
What I cannot understand is, there's no test command script, testing runtime framework in devDependencies of package.json, even no babel configuration with typescript test code.
Is there any test guide line that we could start from?
Lukas Cenovsky (@lucen-ms) Dmitriy Kirakosyan (@DmitriyKirakosyan) Djordje (@DordeDimitrijev)