Skip to content

Conversation

@omermorad
Copy link
Contributor

No description provided.

- Add GitHub Actions workflow with matrix strategy
- Test all 6 examples (inversify-jest, inversify-sinon, inversify-vitest, nestjs-jest, nestjs-sinon, nestjs-vitest)
- Test on Node.js 16, 18, 20, and 22
- Include two-level caching for faster subsequent runs
- Add example READMEs and configurations
@omermorad omermorad changed the title Add CI workflow with matrix testing refactor: setup all examples and ci Dec 2, 2025
omermorad and others added 7 commits December 2, 2025 17:04
- Add type: module to Vitest examples for proper ESM support
- Configure Vitest examples to use ESNext module and bundler resolution
- Add vitest/globals types to Vitest tsconfig for IDE support
- Add jest types to Jest examples tsconfig for IDE support
- Update Vitest SWC plugin to use es6 module type
- Remove package.json.bak file
- Use lowercase esnext for target and module
- Use node module resolution for better compatibility
- Adjust import order in test file
- Run tsc --noEmit before tests in all examples
- Ensures TypeScript errors are caught in CI
- Provides consistency across all test runners
- Remove type-only import for Mocked
- Use node module resolution for compatibility
- Add type annotation to user parameter
- Standardize import order
- Change from 'UserService - Solitary Tests' to 'User Service Unit Spec (Solitary Tests)'
- Change from 'UserService - Sociable Tests' to 'User Service Unit Spec (Sociable Tests)'
- Apply across all 6 examples for consistency
- Change unitRef.get(DATABASE_TOKEN) to unitRef.get<Database>(DATABASE_TOKEN)
- Improves type safety and consistency across all examples
- Follows the pattern from inversify-sinon example
@omermorad omermorad merged commit d70c02e into main Dec 8, 2025
21 checks passed
@omermorad omermorad deleted the add-ci-workflow branch December 8, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants