Skip to content

Commit

Permalink
Merge pull request #160 from Zen-cronic/chore/migrate-mocha
Browse files Browse the repository at this point in the history
chore(test): Migrate test suites from mocha to node test runner
  • Loading branch information
evert authored Sep 12, 2024
2 parents dfaa462 + f29b068 commit a90ec80
Show file tree
Hide file tree
Showing 12 changed files with 1,059 additions and 1,588 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npx mocha --exit
- run: npx tsx --test test/*.ts

lint:
name: Lint

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build: dist/build browser/oauth2-client.min.js

.PHONY:test
test:
npx mocha
npx tsx --test test/*.ts

.PHONY:lint
lint:
Expand Down
Loading

0 comments on commit a90ec80

Please sign in to comment.