Comments (2)
@kulshekhar in trying to prepare a minimal repo I discovered the cause and from there was able to find a solution. I am using WebStorm, which uses the TypeScript Language Service to transpile the source files. It is placing the resulting .js files into the ./dist directory, as specified in the tsconfig.json
file.
Using the testPathDirs
option of jest to restrict the search for test files to only my src
directory fixed the problem.
from ts-jest.
@sykesd can you create a minimal repo that reproduces this issue?
from ts-jest.
Related Issues (20)
- [Bug]: ES6 still doesn't work HOT 1
- [Feature]: Add ability to pass config to presets
- [Bug]: importing `got` v13 package causes Jest to fail to parse the file
- [Bug]: error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'. HOT 1
- [Bug]: TS 5.2 - TypeError: toSorted is not a function HOT 2
- [Bug]: Cannot find module bundle-text (Parcel) HOT 1
- [Bug]: `ts-jest` silently hangs up with certain `moduleResolution` options HOT 13
- [Bug]: Divergent branch coverage in JS and TS reports HOT 1
- [Bug]: Mixed ESM/CJS Typescript files in node_modules HOT 1
- [Bug]: Seems it disrepects "@ts-nocheck"
- [Bug]: Failed to collect coverage from. | 'rootDir' is expected to contain all source files. HOT 2
- [Bug]: Wrong line number at error stack of global setup when using typescript
- [Bug]: Inconsistent hybrid module resolution (index.d.mts vs. index.d.cts) between ts-jest and tsc HOT 3
- [Bug]: Top level await expressions are only .... HOT 6
- [Bug]: Cannot find module '@jest/globals' when cache: false HOT 1
- [Bug]: TS 5.2+ fails if using `nodenext` module resolution and `noEmitOnError` is `true` HOT 2
- [Bug]: TsJestTransformerOptions throw type error
- [Bug]: ESM syntax is not allowed in a CommonJS HOT 1
- [Bug]: Produced source maps seem to have mismatch with file paths
- [Bug]: "Decorator arguments must be moved inside parentheses:.." HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-jest.