diff --git a/CHANGELOG.md b/CHANGELOG.md index 467a44bf..d85dbc4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # changelog * 2.6.8 _tbd_ - * add log utility for debugging loader + * [add log utility function](https://github.com/iambumblehead/esmock/pull/314) for debugging loader + * [dropped ava and jest](https://github.com/iambumblehead/esmock/pull/314) from test sequence, node v22 --loader issues * 2.6.7 _Jul.16.2024_ * [add swc tests and remove swc caution from README](https://github.com/iambumblehead/esmock/pull/309) thanks @Brooooooklyn * [unpin node 22.1 at test CI](https://github.com/iambumblehead/esmock/pull/309) and use latest 22.x diff --git a/README.md b/README.md index 6d929076..83631313 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ _**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"._ +_**Note: due to --loader issues at node v22,** support for `ava` and `jest` are dropped._ + `esmock` has the below signature ```js await esmock( diff --git a/tests/package.json b/tests/package.json index 6bd65bce..ae7addb1 100644 --- a/tests/package.json +++ b/tests/package.json @@ -50,17 +50,17 @@ "install:all": "node --version && npm install && npm-run-all install:test*", "test:test-uvu": "cd tests-uvu && npm test", "test:test-mocha": "cd tests-mocha && npm test", - "test:test-ava": "cd tests-ava && npm test", + "test-dropped:test-ava": "cd tests-ava && npm test", "test:test-tsx": "cd tests-tsx && npm test", "test:test-swc": "cd tests-swc && npm test", "test:node19-tsm": " cd tests-tsm && npm test", "test:node18-test-tsm": "npm run isnodenight || npm run test:node19-tsm", "test:node18-test-tsx": "cd tests-tsx && npm run test", "test:node18-test-node": "cd tests-node && npm test", - "test:node18-test-jest": "cd tests-jest && npm test", - "test:node18-test-jest-ts": "cd tests-jest-ts && npm test", + "test-dropped:node18-test-jest": "cd tests-jest && npm test", + "test-dropped:node18-test-jest-ts": "cd tests-jest-ts && npm test", "test:node18-test-nodets": "cd tests-nodets && npm test", - "test:node18-test-source-map": "cd tests-source-map && npm test", + "test-dropped:node18-test-source-map": "cd tests-source-map && npm test", "test:node18-test-no-loader": "cd tests-no-loader && npm test", "test:node18-test-workspaces": "cd tests-workspaces && npm test", "test:node18:all": "npm run isnodelt18 || npm-run-all test:node18-test*", diff --git a/tests/tests-ava/package.json b/tests/tests-ava/package.json index 457ac904..b389805c 100644 --- a/tests/tests-ava/package.json +++ b/tests/tests-ava/package.json @@ -6,7 +6,7 @@ "url": "git+https://github.com/iambumblehead/esmock.git" }, "dependencies": { - "ava": "^5.3.1", + "ava": "^6.1.3", "run-script-os": "^1.1.6", "esmock": "file:..", "sinon": "file:../node_modules/sinon", diff --git a/tests/tests-jest/package.json b/tests/tests-jest/package.json index 217efd7f..f0dfd667 100644 --- a/tests/tests-jest/package.json +++ b/tests/tests-jest/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "jest": "^29.6.2", - "jest-light-runner": "0.5.0", + "jest-light-runner": "0.6.0", "run-script-os": "^1.1.6", "esmock": "file:..", "sinon": "file:../node_modules/sinon", diff --git a/tests/tests-mocha/package.json b/tests/tests-mocha/package.json index 27fa7614..992da31a 100644 --- a/tests/tests-mocha/package.json +++ b/tests/tests-mocha/package.json @@ -6,12 +6,12 @@ "url": "git+https://github.com/iambumblehead/esmock.git" }, "dependencies": { - "mocha": "^10.2.0", - "chai": "^4.3.7", - "chai-http": "^4.4.0", + "mocha": "^10.7.3", + "chai": "^5.1.1", + "chai-http": "^5.1.1", "esmock": "file:..", - "express": "^4.18.2", - "passport": "^0.6.0" + "express": "^4.21.1", + "passport": "^0.7.0" }, "scripts": { "isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"", diff --git a/tests/tests-mocha/test/app.test.js b/tests/tests-mocha/test/app.test.js index 85002f2e..90f3c28b 100644 --- a/tests/tests-mocha/test/app.test.js +++ b/tests/tests-mocha/test/app.test.js @@ -1,5 +1,5 @@ -import chai from 'chai' -import chaiHttp from 'chai-http' +import * as chai from 'chai' +import {default as chaiHttp, request} from 'chai-http' import esmock from 'esmock' chai.use(chaiHttp) @@ -14,8 +14,8 @@ const app = await esmock('../src/app.js', { describe('/', () => { it('should work', done => { try { - chai - .request(app.default) + request + .execute(app) .get('/') .end((err, res) => { app.close() diff --git a/tests/tests-source-map/package.json b/tests/tests-source-map/package.json index bd631b24..5036f9ff 100644 --- a/tests/tests-source-map/package.json +++ b/tests/tests-source-map/package.json @@ -7,13 +7,13 @@ }, "dependencies": { "esmock": "file:..", - "@ava/typescript": "^4.1.0", + "@ava/typescript": "^5.0.0", "@tsconfig/node16": "^16.1.0", - "@types/node": "^20.4.5", - "ava": "^5.3.1", + "@types/node": "^22.7.6", + "ava": "^6.1.3", "cross-env": "^7.0.3", - "rimraf": "^5.0.1", - "typescript": "^5.1.6" + "rimraf": "^6.0.1", + "typescript": "^5.6.3" }, "scripts": { "isnodelt20_6": "node -e \"(([mj, mn]) => (+mj < 20 || (+mj === 20 && +mn < 6)))(process.versions.node.split('.')) || process.exit(1)\"", diff --git a/tests/tests-tsx/package.json b/tests/tests-tsx/package.json index dfe93542..6ab12f0c 100644 --- a/tests/tests-tsx/package.json +++ b/tests/tests-tsx/package.json @@ -16,6 +16,6 @@ "test": "npm run isloaderavailable && npm run test:loader || npm run test:current" }, "devDependencies": { - "@types/node": "^20.14.2" + "@types/node": "^22.7.6" } }