Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous unit test typing fixes, dependency bumps #154

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"eslint": "^8.57.0",
"husky": "^9.0.0",
"immutable": "^5.0.0",
"jest": "^29.7.0",
"jest-rdf": "^1.8.0",
"jest": "^29.0.0",
"jest-rdf": "^1.0.0",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-firefox-launcher": "^2.1.2",
Expand All @@ -84,14 +84,14 @@
"stream-to-string": "^1.2.1",
"streamify-array": "^1.0.1",
"streamify-string": "^1.0.1",
"ts-jest": "^29.1.1",
"ts-jest": "^29.0.0",
"ts-loader": "^9.4.4",
"typedoc": "^0.27.0",
"typescript": "^5.3.3",
"typescript": "^5.0.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"resolutions": {
"@comunica/mediatortype-time": "4.0.2"
"typescript": "5.4.4"
}
}
2 changes: 1 addition & 1 deletion packages/actor-extract-links-content-policies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"@rdfjs/types": "*",
"rdf-store-stream": "^2.0.1",
"rdf-terms": "^1.11.0",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"@rdfjs/types": "*",
"rdf-data-factory": "^1.1.2",
"rdf-terms": "^1.11.0",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
2 changes: 1 addition & 1 deletion packages/actor-extract-links-quad-pattern/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"@comunica/core": "^4.0.2",
"@comunica/types": "^4.0.2",
"rdf-terms": "^1.11.0",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
2 changes: 1 addition & 1 deletion packages/actor-extract-links-solid-type-index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
"@rdfjs/types": "*",
"rdf-store-stream": "^2.0.1",
"rdf-string": "^1.6.3",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"@comunica/context-entries": "^4.0.2",
"@comunica/core": "^4.0.2",
"@comunica/types": "^4.0.2",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@comunica/types": "^4.0.2",
"@rdfjs/types": "*",
"rdf-terms": "^1.11.0",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ describe('ActorRdfJoinEntriesSortTraversalZeroKnowledge', () => {

it('should handle multiple entries', async() => {
context = context.set(KeysQueryOperation.querySources, [
{ source: { referenceValue: 'ex:seed' }},
{ source: { referenceValue: 'ex:seed2' }},
{ source: <any> { referenceValue: 'ex:seed' }},
{ source: <any> { referenceValue: 'ex:seed2' }},
]);
await expect(actor.run({
entries: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('ActorRdfJoinInnerMultiAdaptiveDestroy', () => {
context,
type: 'inner',
entries,
});
}, { metadatas: []});

const destroy0 = jest.spyOn(entries[0].output.bindingsStream, 'destroy');
const destroy1 = jest.spyOn(entries[0].output.bindingsStream, 'destroy');
Expand Down Expand Up @@ -187,7 +187,7 @@ describe('ActorRdfJoinInnerMultiAdaptiveDestroy', () => {
context,
type: 'inner',
entries,
});
}, { metadatas: []});
const destroy0 = jest.spyOn(entries[0].output.bindingsStream, 'destroy');
const destroy1 = jest.spyOn(entries[0].output.bindingsStream, 'destroy');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('BindingsStreamAdaptiveDestroy', () => {
it('produces the first iterator if the timeout is not reached', async() => {
const delayedSource = jest.fn();
const it = new BindingsStreamAdaptiveDestroy(
new ArrayIterator([
<BindingsStream> <unknown> new ArrayIterator([
BF.fromRecord({ a: DF.namedNode('ex:a1') }),
BF.fromRecord({ a: DF.namedNode('ex:a2') }),
]),
Expand All @@ -32,7 +32,7 @@ describe('BindingsStreamAdaptiveDestroy', () => {

it('consumes part of the second iterator if the timeout is reached', async() => {
const delayedSource = jest.fn(async() => {
return new ArrayIterator([
return <BindingsStream> <unknown> new ArrayIterator([
BF.fromRecord({ a: DF.namedNode('ex:a1') }),
BF.fromRecord({ a: DF.namedNode('ex:a2') }),
], { autoStart: false });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"http-link-header": "^1.1.3",
"rdf-store-stream": "^2.0.1",
"relative-to-absolute-iri": "^1.0.7",
"sparqlalgebrajs": "^4.2.0"
"sparqlalgebrajs": "^4.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"@comunica/context-entries": "^4.0.2",
"@comunica/core": "^4.0.2",
"@comunica/types": "^4.0.2",
"sparqlalgebrajs": "^4.3.5"
"sparqlalgebrajs": "^4.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describe('LinkQueueFilterLinks', () => {
jest.spyOn(performance, 'now').mockImplementation(() => i);
const wrapper = new LinkQueueLogger(linkQueue, query, logger);

const reachabilityRatio = {
const reachabilityRatio: Record<string, Record<string, number>> = {
push: {},
pop: {},
};
Expand Down Expand Up @@ -473,7 +473,7 @@ describe('LinkQueueFilterLinks', () => {
jest.spyOn(performance, 'now').mockImplementation(() => i);
const wrapper = new LinkQueueLogger(linkQueue, query, logger);
let expectedLink: any;
const reachabilityRatio = {
const reachabilityRatio: Record<string, Record<string, number>> = {
push: {},
pop: {},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@comunica/types": "^4.0.2",
"@types/readable-stream": "^4.0.0",
"rdf-data-factory": "^1.1.2",
"readable-stream": "^4.4.2"
"readable-stream": "^4.5.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('ActorRdfResolveHypermediaLinksTraverseAnnotateSourceGraph', () => {
links: [
{
url: 'ex:link1',
transform: input => (<Readable> input).pipe(new Transform({
transform: (input: Readable) => input.pipe(new Transform({
objectMode: true,
transform(chunk: any, encoding: string, callback: TransformCallback) {
callback(undefined, chunk);
Expand Down
11 changes: 4 additions & 7 deletions performance/benchmark-solidbench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
"performance:ci": "yarn install --ignore-engines && npm run fetch-assets && sudo npm run set-host && jbr prepare -c 0 && jbr run -c 0 && sudo npm run remove-host"
},
"dependencies": {
"@jbr-experiment/solidbench": "^5.3.1",
"@jbr-hook/cli": "^5.2.0",
"@jbr-hook/sparql-endpoint-comunica": "^5.2.0",
"@jbr-experiment/solidbench": "^5.4.0",
"@jbr-hook/cli": "^5.4.0",
"@jbr-hook/sparql-endpoint-comunica": "^5.4.0",
"cross-env": "^7.0.3",
"hostile": "^1.4.0",
"jbr": "^5.2.0"
},
"resolutions": {
"componentsjs": "6.0.1"
"jbr": "^5.4.0"
}
}
Loading
Loading