Skip to content

Commit

Permalink
Add test framework and support new publish profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanzhang Zeng (Roger) committed Nov 14, 2020
1 parent acbc050 commit 31d8bb8
Show file tree
Hide file tree
Showing 15 changed files with 2,340 additions and 41 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*]
trim_trailing_whitespace = true
insert_final_newline = false

[*.ts]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8

[*.spec.ts]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# Github Actions master branch will not have node_modules (use v1 instead)
node_modules/
lib/
node_modules/

# Tests
coverage/
.nyc_output/

# User-specific files
*.suo
Expand Down
18 changes: 12 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"preLaunchTask": "tsc: build - tsconfig.dev.json",
"program": "${workspaceFolder}/lib/main.js",
"outFiles": [
"${workspaceFolder}/lib/**/*.js"
]
"name": "UnitTest",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--no-timeouts",
"--colors",
"${file}",
"--require",
"ts-node/register"
],
"console": "integratedTerminal",
"sourceMaps": true,
"internalConsoleOptions": "neverOpen"
}
]
}
Loading

0 comments on commit 31d8bb8

Please sign in to comment.