Socket
Socket
Sign inDemoInstall

@testdeck/di-typedi

Package Overview
Dependencies
1
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @testdeck/di-typedi

TypeDI IOC integration for testdeck


Version published
Maintainers
2
Created

Changelog

Source

v0.3.3 (2022-12-05)

:house: Internal
  • #342 Closes #334: Add additional issue templates (@silkentrance)
  • #350 Closes #349: Disable package-lock.json on root package (@silkentrance)
  • #352 Closes #351: Update Github Workflow (@silkentrance)
  • #357 Closes #356: Add SonarCloud to check for code coverage and other quality reports (@silkentrance)
  • #363 Closes #362: Split workflows into CI and QA (@silkentrance)
  • core, di-typedi, jasmine, jest, mocha, vitest
  • jasmine, jest, mocha, vitest
  • vitest
:memo: Documentation

Readme

Source

Get it on NPM License Build Status Coverage Quality Gate Status Issues Pull Requests

@testdeck/di-typedi

Integration of the TypeDI IOC.

import { suite, test } from "@testdeck/mocha";
import { expect } from "chai";

// register TypeDI support with testdeck and also let reflect-metadata do it's magic
import "@testdeck/di-typedi";
import "reflect-metadata";

import { Service } from "typedi";

@Service()
class SomeService {

  doSomething(): boolean {

    return false;
  }
}

@suite
class Hello {

  constructor(private service: SomeService) {
  }

  @test
  world() {
    expect(this.service.doSomething()).to.be.true;
  }
}

This also works with the provided integrations for Jasmine and Jest.

If you are looking for other test framework support, please see the following packages

Installation

npm install --save-dev typedi reflect-metadata @testdeck/di-typedi

Additional Information

You can find a lot more information in the official documentation.

Read more about TypeDI.

FAQs

Last updated on 05 Dec 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc