Skip to content

Commit a61baad

Browse files
committed
test: replace tap with the built-in node test runner
1 parent bb94ef9 commit a61baad

18 files changed

+1870
-7677
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
build:
2020
working_directory: ~/hft-limit-order-book
2121
docker:
22-
- image: cimg/node:lts
22+
- image: cimg/node:22.5
2323
steps:
2424
- checkout
2525
- *restore-cache
@@ -33,7 +33,7 @@ jobs:
3333
test:
3434
working_directory: ~/hft-limit-order-book
3535
docker:
36-
- image: cimg/node:lts
36+
- image: cimg/node:22.5
3737
steps:
3838
- checkout
3939
- *restore-cache
@@ -42,7 +42,7 @@ jobs:
4242
name: Unit tests
4343
command: npm run test:cov
4444
- codecov/upload:
45-
file: './.tap/report/lcov.info'
45+
file: 'lcov.info'
4646

4747
workflows:
4848
version: 2

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup .npmrc file to publish to npm
2424
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
2525
with:
26-
node-version: '18.x'
26+
node-version: '20.x'
2727
registry-url: 'https://registry.npmjs.org'
2828
- name: Install modules
2929
run: npm install
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup .npmrc file to publish to GitHub Packages
3737
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
3838
with:
39-
node-version: '18.x'
39+
node-version: '20.x'
4040
registry-url: 'https://npm.pkg.github.com'
4141
scope: '@fasenderos'
4242
- run: npm run addscope

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
os:
3333
- ubuntu-latest
3434
- windows-latest
35-
node: [18.x, 20.x]
35+
node: [20.x, 22.x]
3636

3737
steps:
3838
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -43,4 +43,4 @@ jobs:
4343
- name: Install modules
4444
run: npm install
4545
- name: Run tests
46-
run: npm test
46+
run: npm run test:ci

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pids
1515
*.seed
1616
*.pid.lock
1717

18-
# Report and coverage generated by tap
19-
.tap
18+
# Report and coverage generated by node test runner
19+
lcov.info
2020

2121
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
2222
.grunt

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
npm run lint
2-
npm run test
2+
npm run test:ci

0 commit comments

Comments
 (0)