Skip to content

Commit 3bbff0e

Browse files
committed
update dependencies, drop ava and jest from test sequence
1 parent 9ff0367 commit 3bbff0e

File tree

9 files changed

+25
-22
lines changed

9 files changed

+25
-22
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# changelog
22

33
* 2.6.8 _tbd_
4-
* add log utility for debugging loader
4+
* [add log utility function](https://github.com/iambumblehead/esmock/pull/314) for debugging loader
5+
* [dropped ava and jest](https://github.com/iambumblehead/esmock/pull/314) from test sequence, node v22 --loader issues
56
* 2.6.7 _Jul.16.2024_
67
* [add swc tests and remove swc caution from README](https://github.com/iambumblehead/esmock/pull/309) thanks @Brooooooklyn
78
* [unpin node 22.1 at test CI](https://github.com/iambumblehead/esmock/pull/309) and use latest 22.x

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
_**Note: For versions of node prior to v20.6.0,** "--loader" command line arguments must be used with `esmock` as demonstrated [in the wiki.][4] Current versions of node do not require "--loader"._
1515

16+
_**Note: due to --loader issues at node v22,** support for `ava` and `jest` are dropped._
17+
1618
`esmock` has the below signature
1719
```js
1820
await esmock(

tests/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@
5050
"install:all": "node --version && npm install && npm-run-all install:test*",
5151
"test:test-uvu": "cd tests-uvu && npm test",
5252
"test:test-mocha": "cd tests-mocha && npm test",
53-
"test:test-ava": "cd tests-ava && npm test",
53+
"test-dropped:test-ava": "cd tests-ava && npm test",
5454
"test:test-tsx": "cd tests-tsx && npm test",
5555
"test:test-swc": "cd tests-swc && npm test",
5656
"test:node19-tsm": " cd tests-tsm && npm test",
5757
"test:node18-test-tsm": "npm run isnodenight || npm run test:node19-tsm",
5858
"test:node18-test-tsx": "cd tests-tsx && npm run test",
5959
"test:node18-test-node": "cd tests-node && npm test",
60-
"test:node18-test-jest": "cd tests-jest && npm test",
61-
"test:node18-test-jest-ts": "cd tests-jest-ts && npm test",
60+
"test-dropped:node18-test-jest": "cd tests-jest && npm test",
61+
"test-dropped:node18-test-jest-ts": "cd tests-jest-ts && npm test",
6262
"test:node18-test-nodets": "cd tests-nodets && npm test",
63-
"test:node18-test-source-map": "cd tests-source-map && npm test",
63+
"test-dropped:node18-test-source-map": "cd tests-source-map && npm test",
6464
"test:node18-test-no-loader": "cd tests-no-loader && npm test",
6565
"test:node18-test-workspaces": "cd tests-workspaces && npm test",
6666
"test:node18:all": "npm run isnodelt18 || npm-run-all test:node18-test*",

tests/tests-ava/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "git+https://github.com/iambumblehead/esmock.git"
77
},
88
"dependencies": {
9-
"ava": "^5.3.1",
9+
"ava": "^6.1.3",
1010
"run-script-os": "^1.1.6",
1111
"esmock": "file:..",
1212
"sinon": "file:../node_modules/sinon",

tests/tests-jest/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"jest": "^29.6.2",
10-
"jest-light-runner": "0.5.0",
10+
"jest-light-runner": "0.6.0",
1111
"run-script-os": "^1.1.6",
1212
"esmock": "file:..",
1313
"sinon": "file:../node_modules/sinon",

tests/tests-mocha/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "git+https://github.com/iambumblehead/esmock.git"
77
},
88
"dependencies": {
9-
"mocha": "^10.2.0",
10-
"chai": "^4.3.7",
11-
"chai-http": "^4.4.0",
9+
"mocha": "^10.7.3",
10+
"chai": "^5.1.1",
11+
"chai-http": "^5.1.1",
1212
"esmock": "file:..",
13-
"express": "^4.18.2",
14-
"passport": "^0.6.0"
13+
"express": "^4.21.1",
14+
"passport": "^0.7.0"
1515
},
1616
"scripts": {
1717
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",

tests/tests-mocha/test/app.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import chai from 'chai'
2-
import chaiHttp from 'chai-http'
1+
import * as chai from 'chai'
2+
import {default as chaiHttp, request} from 'chai-http'
33
import esmock from 'esmock'
44

55
chai.use(chaiHttp)
@@ -14,8 +14,8 @@ const app = await esmock('../src/app.js', {
1414
describe('/', () => {
1515
it('should work', done => {
1616
try {
17-
chai
18-
.request(app.default)
17+
request
18+
.execute(app)
1919
.get('/')
2020
.end((err, res) => {
2121
app.close()

tests/tests-source-map/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
},
88
"dependencies": {
99
"esmock": "file:..",
10-
"@ava/typescript": "^4.1.0",
10+
"@ava/typescript": "^5.0.0",
1111
"@tsconfig/node16": "^16.1.0",
12-
"@types/node": "^20.4.5",
13-
"ava": "^5.3.1",
12+
"@types/node": "^22.7.6",
13+
"ava": "^6.1.3",
1414
"cross-env": "^7.0.3",
15-
"rimraf": "^5.0.1",
16-
"typescript": "^5.1.6"
15+
"rimraf": "^6.0.1",
16+
"typescript": "^5.6.3"
1717
},
1818
"scripts": {
1919
"isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"",

tests/tests-tsx/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"test": "npm run isloaderavailable && npm run test:loader || npm run test:current"
1717
},
1818
"devDependencies": {
19-
"@types/node": "^20.14.2"
19+
"@types/node": "^22.7.6"
2020
}
2121
}

0 commit comments

Comments
 (0)