Skip to content

Commit

Permalink
Fix unit tests failing on Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Sep 12, 2023
1 parent 1a24062 commit 3468430
Show file tree
Hide file tree
Showing 3 changed files with 530 additions and 496 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,34 +55,34 @@
"stream-to-string": "^1.1.0"
},
"devDependencies": {
"@types/jest": "^28.0.0",
"@types/jest": "^29.5.4",
"@types/minimist": "^1.2.0",
"@types/n3": "^1.10.3",
"arrayify-stream": "^2.0.0",
"coveralls": "^3.0.0",
"jest": "^28.0.1",
"jest": "^29.7.0",
"jest-rdf": "^1.7.0",
"manual-git-changelog": "^1.0.0",
"pre-commit": "^1.2.2",
"rdf-data-factory": "^1.1.0",
"streamify-string": "^1.0.1",
"ts-jest": "^28.0.1",
"ts-jest": "^29.1.1",
"ts-loader": "^9.3.1",
"tslint": "^6.0.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^5.0.0",
"web-streams-node": "^0.4.0",
"readable-stream-node-to-web": "^1.0.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"jest": {
"globals": {
"ts-jest": {
"tsconfig": "test/tsconfig.json"
}
},
"transform": {
"^.+\\.ts$": "ts-jest"
"^.+\\.ts$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json"
}
]
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
Expand Down
2 changes: 1 addition & 1 deletion test/SparqlEndpointFetcher-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('SparqlEndpointFetcher', () => {

it('should fetch with a web stream', async () => {
const fetchCbThis = () => Promise.resolve(<Response> {
body: require('web-streams-node').toWebReadableStream(streamifyString(`abc`)),
body: require('readable-stream-node-to-web')(streamifyString(`abc`)),
headers: new Headers(),
ok: true,
status: 200,
Expand Down
Loading

0 comments on commit 3468430

Please sign in to comment.