Skip to content

Commit ebec289

Browse files
authored
Merge branch 'main' into Run-tests-on-ubuntu-latest
2 parents 6872692 + b3c4044 commit ebec289

File tree

13 files changed

+4981
-7024
lines changed

13 files changed

+4981
-7024
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: npm ci
5353

5454
- name: Unit tests (Linux)
55-
run: npm run test-unit-browsers
55+
run: npm run test-unit
5656

5757
- name: Test a full build of the app
5858
run: npm run build
@@ -179,17 +179,7 @@ jobs:
179179
run: npm run build-min
180180

181181
- name: Unit tests (Windows)
182-
run: |
183-
$AggregateExitCode = 0
184-
npm run test-unit-edge
185-
$AggregateExitCode += $LastExitCode
186-
npm run test-unit-firefox
187-
$AggregateExitCode += $LastExitCode
188-
if ($AggregateExitCode -ne 0) {
189-
echo " "
190-
Write-Error "Number of failed tests: $AggregateExitCode"
191-
}
192-
exit $AggregateExitCode
182+
run: npm run test-unit
193183

194184
- name: End-to-end tests on Edge Chromium (Windows)
195185
env:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ intermediate
3636
publish
3737
.idea
3838
nbproject/private
39+
.nyc_output
40+
coverage
3941

4042
# build script local files
4143
build/buildinfo.properties

.mocharc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extension": ["js"],
3+
"spec": "tests/unit/**/*.test.js",
4+
"timeout": 5000,
5+
"recursive": true,
6+
"exit": true,
7+
"require": [
8+
"@babel/register",
9+
"./tests/unit/setup.js"
10+
]
11+
}

.nycrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"all": true,
3+
"include": [
4+
"src/**/*.js"
5+
],
6+
"exclude": [
7+
"**/*.test.js",
8+
"tests/**",
9+
"node_modules/**"
10+
],
11+
"reporter": [
12+
"text",
13+
"lcov"
14+
],
15+
"check-coverage": true,
16+
"branches": 70,
17+
"lines": 70,
18+
"functions": 70,
19+
"statements": 70
20+
}

0 commit comments

Comments
 (0)