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:
@@ -13,7 +13,7 @@ import { HandlebarsTemplateEngine } from '../../../../src/util/templates/Handleb
|
||||
import { SimpleSuffixStrategy } from '../../../util/SimpleSuffixStrategy';
|
||||
import { mockFileSystem } from '../../../util/Util';
|
||||
|
||||
jest.mock('fs');
|
||||
jest.mock('node:fs');
|
||||
jest.mock('fs-extra');
|
||||
|
||||
class DummyFactory implements FileIdentifierMapperFactory {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fs from 'fs';
|
||||
import fs from 'node:fs';
|
||||
import { RootFilePathHandler } from '../../../../../src/pods/generate/variables/RootFilePathHandler';
|
||||
import { TEMPLATE_VARIABLE } from '../../../../../src/pods/generate/variables/Variables';
|
||||
import type { PodSettings } from '../../../../../src/pods/settings/PodSettings';
|
||||
@@ -6,7 +6,7 @@ import type { ResourceLink } from '../../../../../src/storage/mapping/FileIdenti
|
||||
import { ConflictHttpError } from '../../../../../src/util/errors/ConflictHttpError';
|
||||
import { joinFilePath } from '../../../../../src/util/PathUtil';
|
||||
|
||||
jest.mock('fs');
|
||||
jest.mock('node:fs');
|
||||
|
||||
describe('A RootFilePathHandler', (): void => {
|
||||
const rootFilePath = 'files/';
|
||||
|
||||
Reference in New Issue
Block a user