Skip to content

Commit

Permalink
Replace Nodeunit with Mocha (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunkica authored Jun 6, 2023
1 parent d2e9ba1 commit 5a1ac33
Show file tree
Hide file tree
Showing 25 changed files with 2,229 additions and 2,998 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
test:
name: Test Code
env:
CI: true

Expand All @@ -22,7 +23,7 @@ jobs:
experimental: true
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
Expand All @@ -38,3 +39,17 @@ jobs:
uses: codecov/[email protected]
with:
verbose: true

lint:
name: Lint Code
env:
CI: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
- run: |
npm ci
npm run lint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ p.txt
npm-debug.log
/test/validators/XmlCryptoJava/target/
.eslintcache
.nyc_output/
coverage/
10 changes: 10 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"diff": true,
"extension": "spec.js",
"package": "./package.json",
"recursive": true,
"reporter": "spec",
"require": ["choma"],
"spec": "test/*.js",
"watch-files": "test/*.js"
}
6 changes: 6 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"all": true,
"check-coverage": false,
"reporter": ["lcov", "text"],
"include": ["src/**"]
}
Loading

0 comments on commit 5a1ac33

Please sign in to comment.