Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup project test framework and add the first unit test #393

Merged
merged 5 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .ci/common-validation.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
steps:
- task: NodeTool@0
displayName: "Use Node 10.x"
displayName: "Use Node 16.x"
inputs:
versionSpec: 10.x
versionSpec: 16.x

- bash: npm install gulp -g --force
displayName: "npm install gulp -g"
Expand All @@ -12,3 +12,8 @@ steps:

- bash: gulp
displayName: "gulp default"

- bash: "npm run test --verbose"
displayName: "Run unit tests"
env:
DISPLAY: ":99.0"
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ src/plugins/cordova-plugin-device-motion/draw.js
src/plugins/cordova-plugin-globalization/accounting.js
src/plugins/cordova-plugin-globalization/moment.js
src/third-party/**/*.js
test/resources
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"comma-spacing": ["error", { "before": false, "after": true }],
"key-spacing": ["error", { "beforeColon": false }],
"no-prototype-builtins": "off",
"no-redeclare": ["error", { "builtinGlobals": false }]
"no-redeclare": ["error", { "builtinGlobals": false }],
"no-undef": "warn"
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
/.idea/
.DS_Store
.vscode
.vscode
test/resources/testSampleProject/simulation
Loading