mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use node protocol when importing builtins
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import 'jest-rdf';
|
||||
import type { Readable } from 'stream';
|
||||
import type { Readable } from 'node:stream';
|
||||
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
||||
import { AtomicFileDataAccessor } from '../../../../src/storage/accessors/AtomicFileDataAccessor';
|
||||
import { ExtensionBasedMapper } from '../../../../src/storage/mapping/ExtensionBasedMapper';
|
||||
@@ -9,7 +9,7 @@ import { guardedStreamFrom } from '../../../../src/util/StreamUtil';
|
||||
import { CONTENT_TYPE } from '../../../../src/util/Vocabularies';
|
||||
import { mockFileSystem } from '../../../util/Util';
|
||||
|
||||
jest.mock('fs');
|
||||
jest.mock('node:fs');
|
||||
jest.mock('fs-extra');
|
||||
|
||||
describe('AtomicFileDataAccessor', (): void => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'jest-rdf';
|
||||
import type { Readable } from 'stream';
|
||||
import type { Readable } from 'node:stream';
|
||||
import { DataFactory } from 'n3';
|
||||
import type { Representation } from '../../../../src/http/representation/Representation';
|
||||
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
||||
@@ -19,7 +19,7 @@ import { mockFileSystem } from '../../../util/Util';
|
||||
|
||||
const { namedNode, quad } = DataFactory;
|
||||
|
||||
jest.mock('fs');
|
||||
jest.mock('node:fs');
|
||||
jest.mock('fs-extra');
|
||||
|
||||
const rootFilePath = 'uploads';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'jest-rdf';
|
||||
import type { Readable } from 'stream';
|
||||
import type { Readable } from 'node:stream';
|
||||
import { DataFactory } from 'n3';
|
||||
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
||||
import type { ResourceIdentifier } from '../../../../src/http/representation/ResourceIdentifier';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'jest-rdf';
|
||||
import { Readable } from 'stream';
|
||||
import { Readable } from 'node:stream';
|
||||
import arrayifyStream from 'arrayify-stream';
|
||||
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
||||
import { DataFactory } from 'n3';
|
||||
|
||||
Reference in New Issue
Block a user