Skip to content

Commit

Permalink
Setup project test framework and add the first unit test (#393)
Browse files Browse the repository at this point in the history
* Add unit test

* Update

* Update validation pipeline task

* Update

* Update
  • Loading branch information
EzioLi01 authored Feb 7, 2023
1 parent 0ccc5f9 commit bc1dea9
Show file tree
Hide file tree
Showing 49 changed files with 6,627 additions and 164 deletions.
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

0 comments on commit bc1dea9

Please sign in to comment.