0.3.3 • Published 1 year ago
@testdeck/di-typedi v0.3.3
@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
1 year ago
0.3.1-pre.0
1 year ago
0.3.0-pre.1
2 years ago
0.3.0-pre.0
2 years ago
0.3.0
2 years ago
0.3.2
1 year ago
0.3.1
1 year ago
0.2.2
2 years ago
0.2.0
2 years ago
0.1.2
4 years ago
0.1.0
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago