Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from AnasBoulmane/performance
Performance: improve set and get performances: * make the service id mandatory * improve testing coverages * migrate jest configuration Using the CLI ts-jest config:migrate
- Loading branch information
Showing
13 changed files
with
293 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
module.exports = { | ||
globals: { | ||
"ts-jest": { | ||
tsConfigFile: `${__dirname}/tsconfig.json`, | ||
'ts-jest': { | ||
tsConfig: `${__dirname}/tsconfig.json`, | ||
}, | ||
}, | ||
moduleFileExtensions: ["ts", "js"], | ||
moduleFileExtensions: [ | ||
'js', | ||
'ts', | ||
], | ||
transform: { | ||
"^.+\\.(ts|tsx)$": "./node_modules/ts-jest/preprocessor.js", | ||
'^.+\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
testMatch: ["**/test/**/*.spec.(ts|js)"], | ||
testEnvironment: "node", | ||
}; | ||
testMatch: [ | ||
'**/test/**/*.spec.(ts|js)', | ||
], | ||
testEnvironment: 'node', | ||
preset: 'ts-jest', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import "reflect-metadata"; | ||
import { Container } from "../../src/index"; | ||
import { Container } from "../../src"; | ||
import { CoffeeMaker } from "./CoffeeMaker"; | ||
|
||
const coffeeMaker = Container.get(CoffeeMaker); | ||
const coffeeMaker = Container.get<CoffeeMaker>(CoffeeMaker); | ||
coffeeMaker.make(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.