We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to inject instances in mocha tests without passing the container, basically looking for something like:
import * as assert from 'assert'; import { inject, injectable } from 'inversify'; import { ApplicationShell } from './application-shell'; import { FrontendApplicationStateService } from '../frontend-application-state'; @suite @injectable() export class ApplicationShellTest { @inject(ApplicationShell) protected readonly shell: ApplicationShell; @test @timeout(4000) async testAttached(): Promise<void> { assert.ok(this.shell.isAttached); } }
Maybe in the combination with https://www.npmjs.com/package/mocha-typescript
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to inject instances in mocha tests without passing the container, basically looking for something like:
Maybe in the combination with https://www.npmjs.com/package/mocha-typescript
The text was updated successfully, but these errors were encountered: