0.3.3 • Published 3 years ago

@testdeck/di-typedi v0.3.3

Weekly downloads
21
License
Apache-2.0
Repository
github
Last release
3 years ago

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.

0.3.3

3 years ago

0.3.1-pre.0

3 years ago

0.3.0-pre.1

3 years ago

0.3.0-pre.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.2.0

4 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago