Skip to content

Commit

Permalink
review comment: do not use deep imports
Browse files Browse the repository at this point in the history
  • Loading branch information
casparneumann-cap committed Nov 13, 2023
1 parent c6515bf commit f818a04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/server/src/modules/h5p-editor/h5p-editor.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,7 @@ const providers = [
imports,
controllers,
providers,
exports: [ContentStorage, LibraryStorage],
})
export class H5PEditorModule {}
export { LibraryStorage, ContentStorage, s3ConfigLibraries, s3ConfigContent };
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Test, TestingModule } from '@nestjs/testing';
import { DeepMocked, createMock } from '@golevelup/ts-jest';
import { ContentStorage, LibraryStorage } from '@src/modules/h5p-editor/service';
import {
ContentStorage,
LibraryStorage,
s3ConfigContent,
s3ConfigLibraries,
} from '@modules/h5p-editor/h5p-editor.module';
import { LibraryAdministration, ContentTypeCache } from '@lumieducation/h5p-server';
import { IHubContentType } from '@lumieducation/h5p-server/build/src/types';
import { s3ConfigContent, s3ConfigLibraries } from '@src/modules/h5p-editor/h5p-editor.config';
import { H5PLibraryManagementService } from './h5p-library-management.service';

jest.mock('@lumieducation/h5p-server', () => {
Expand Down

0 comments on commit f818a04

Please sign in to comment.