Skip to content

Commit

Permalink
Add Promise pattern and unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyKh committed Jan 16, 2018
1 parent 8c386f9 commit d55459b
Show file tree
Hide file tree
Showing 17 changed files with 917 additions and 447 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: Gmv3hA2vMKiEAAdXIqRtZLJGRDF4Yno6a
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ script:
- tsc -p ./tsconfig.json
- npm run tslint
- npm test
after_success:
- npm run coverage

79 changes: 79 additions & 0 deletions .vscode - Copy/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/index.js"
},
{
"name": "Run mocha",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["${file}", "--no-timeouts"],

"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": { "NODE_ENV": "testing"}
},
{
"name": "Current TS File",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
},
{
"name": "Current TS Tests File",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["-r", "source-map-support/register", "${relativeFile}"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"outFiles": ["${workspaceRoot}/test"]
},
{
"name": "Run Tests",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"-u", "tdd",
"-r", "ts-node/register",
"--timeout", "999999",
"--colors"
],
"runtimeArgs": [
"--nolazy"
],
"sourceMaps": true
},
{
"name": "Launch Tests (debug)",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/mocha",
"stopOnEntry": false,
"args": ["--reporter", "spec", "--timeout", "5000", "--debug", "--require", "ts-node/register", "test/**/*.ts"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "dev"
},
"externalConsole": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/test/"
}
]
}
Loading

0 comments on commit d55459b

Please sign in to comment.