Comments (3)
@mattmazzola This launch.json file works for me. I'm able to set breakpoints and hit them.
{
"version": "0.2.0",
"configurations": [
{
"name": "Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"sourceMaps": true,
"runtimeArgs": [
"-i"
],
"env": {
"NODE_ENV": "development"
},
"outFiles": [
"${workspaceRoot}/dist/**/*"
],
"cwd": "${workspaceRoot}"
}
]
}
The weird thing is that I have to press F5 twice, because the first time the debugger exits without hitting the breakpoint. But it hits the breakpoint the second time through. 😄
from typescript-library-starter.
I had opened similar issues on VSCode and Jest repos.
Two things, it only works with legacy protocol (not inspect), and it does not work with Node 7 or 8 due to breaking changes in the vmContext stuff.
Root Issue:
nodejs/node#7593
See related issues:
microsoft/vscode#28007
jestjs/jest#3748
from typescript-library-starter.
Hi @marcantoineveilleux. I'm sorry but I don't think this issue belongs to this repository.
If you can set breakpoints with ts-jest, you should be able to do it here. So I suggest better ask in stackoverflow about it ot open an issue in ts-jest.
Nonetheless, I'll keep this issue open some days in case someone knows the answer
from typescript-library-starter.
Related Issues (20)
- [typings] How to merge d.ts files under one namespace?
- ES6 imports
- `Error: '__spreadArrays' is not exported by tslib` occurs when `npm run build` HOT 8
- automatically update year in license to current year
- use ISC license
- found 326 vulnerabilities (73 low, 1 moderate, 252 high) HOT 1
- Source maps pointing outside of dist folder
- Import does not work HOT 1
- when i clone github project directly install times error
- README: add instructions/steps on how to use this together with `google/clasp`
- How to integrate REACT HOT 1
- Not getting autocompletion when importing published library in a project HOT 1
- Better post-install markdown file generation.
- some dependencies need upgrade
- How to use library version in package.json
- How should I got the correct version field in package.json?
- Is this package dead? HOT 7
- node_modules/@types/node/assert.d.ts(1) '{' or ';' expected. HOT 5
- Is it possible to use this to export a function that calls ReactDOM.render, rather than rendering automatically?
- Error: Cannot find module scoped private package HOT 1
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 typescript-library-starter.