ts-jest-mock-import-meta
A TypeScript AST transformer for ts-jest to mock import.meta expressions.
Pricing
See website
Flat rate
Adoption
→StableLicense
Open Source
Data freshness
—Overview
What is ts-jest-mock-import-meta?
This tool provides a simple Typescript AST transformer that mocks import.meta expressions in Jest tests, making it easier to test code using dynamic imports and other meta properties.
Key differentiator
“The only tool specifically designed to mock import.meta expressions in ts-jest, providing a seamless way to test dynamic imports and meta properties without manual intervention.”
Capability profile
Strength Radar
Honest assessment
Strengths & Weaknesses
↑ Strengths
Fit analysis
Who is it for?
✓ Best for
TypeScript developers who need to test code using import.meta expressions.
Projects requiring precise control over the mocking of dynamic imports and meta properties in Jest tests.
✕ Not a fit for
Developers working with languages other than TypeScript.
Projects that do not use Jest for testing.
Cost structure
Pricing
Free Tier
None
Starts at
See website
Model
Flat rate
Enterprise
None
Performance benchmarks
How Fast Is It?
Next step
Get Started with ts-jest-mock-import-meta
Step-by-step setup guide with code examples and common gotchas.