Skip to content

Commit

Permalink
fix(core): circular structure error (jest) #11303
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 22, 2023
1 parent 6ed1b14 commit 36e8bfc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ import { UNKNOWN_DEPENDENCIES_MESSAGE } from '../messages';
import { RuntimeException } from './runtime.exception';

export class UnknownDependenciesException extends RuntimeException {
public readonly moduleRef: { id: string } | undefined;

constructor(
public readonly type: string | symbol,
public readonly context: InjectorDependencyContext,
public readonly moduleRef?: Module,
moduleRef?: Module,
public readonly metadata?: { id: string },
) {
super(UNKNOWN_DEPENDENCIES_MESSAGE(type, context, moduleRef));
this.moduleRef = moduleRef && { id: moduleRef.id };
}
}

0 comments on commit 36e8bfc

Please sign in to comment.