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

Converted Q Unit tests to Mocha Tests #1301

Merged
merged 18 commits into from
Mar 17, 2025
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
14 changes: 2 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: npm ci

- name: Unit tests (Linux)
run: npm run test-unit-browsers
run: npm run test-unit

- name: Test a full build of the app
run: npm run build
Expand Down Expand Up @@ -179,17 +179,7 @@ jobs:
run: npm run build-min

- name: Unit tests (Windows)
run: |
$AggregateExitCode = 0
npm run test-unit-edge
$AggregateExitCode += $LastExitCode
npm run test-unit-firefox
$AggregateExitCode += $LastExitCode
if ($AggregateExitCode -ne 0) {
echo " "
Write-Error "Number of failed tests: $AggregateExitCode"
}
exit $AggregateExitCode
run: npm run test-unit

- name: End-to-end tests on Edge Chromium (Windows)
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ intermediate
publish
.idea
nbproject/private
.nyc_output
coverage

# build script local files
build/buildinfo.properties
Expand Down
11 changes: 11 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extension": ["js"],
"spec": "tests/unit/**/*.test.js",
"timeout": 5000,
"recursive": true,
"exit": true,
"require": [
"@babel/register",
"./tests/unit/setup.js"
]
}
20 changes: 20 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"all": true,
"include": [
"src/**/*.js"
],
"exclude": [
"**/*.test.js",
"tests/**",
"node_modules/**"
],
"reporter": [
"text",
"lcov"
],
"check-coverage": true,
"branches": 70,
"lines": 70,
"functions": 70,
"statements": 70
}
Loading
Loading