Max P b9a75a36f5 Add Typedoc support and improve documentation
Upgraded the package version to 0.0.9. Introduced Typedoc for generating documentation with added script in package.json. Enhanced exception handling by introducing `DependencyResolutionError`. Refined TSinjex comments and README structure for better readability. Updated index file exports for better module organization.
2024-08-15 17:57:07 +02:00
2024-08-14 19:40:05 +02:00
2024-08-14 19:40:05 +02:00
2024-08-14 19:40:05 +02:00
2024-07-19 09:51:22 +02:00
2024-08-14 19:40:05 +02:00

TSinjex

Configuration

Jest

Example jest setup

module.exports = {
    setupFilesAfterEnv: ['./scripts/jest.setup.js'],
    preset: 'ts-jest',
    testEnvironment: 'node',
    testMatch: ['**/__tests__/**/*.test.ts', '**/?(*.)+(test).ts'],
    moduleDirectories: ['node_modules', 'src'],
    moduleNameMapper: {
        '^src/(.*)$': '<rootDir>/src/$1', // Map src to the source folder
        '^ts-injex$': '<rootDir>/node_modules/ts-injex/src', // Map ts-injex to the source folder
    },
    transformIgnorePatterns: [
        'node_modules/(?!ts-injex)' // **Dont** ignore ts-injex on preset `ts-jest`
    ],
};
Description
Simple boilerplate code free dependency injection system for TypeScript.
Readme MIT 784 KiB
Languages
TypeScript 85.9%
JavaScript 14.1%