You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
For the moment, I have stopped looking and stuck with es6.
When I get some spare time I'll take a look. Think I need to go through the detail of webpack.
Also might take a look at using create react app with ES6. But then code in typescript and use a task to compile it down to ES5.
On 10 Sep 2017, at 12:59, Vikas Kumar ***@***.***> wrote:
Hi @gbatterbee , do you find any solution for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
On 10 Sep 2017, at 12:59, Vikas Kumar ***@***.***> wrote:
Hi @gbatterbee , do you find any solution for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Yeah, debugging with es6 works.
Can't remember what I did.
Had problems with the jests not auto marking.
Other priorities have come up.
Had to shelve this for a bit.
Don't think this is what I did, but there are some docs here
https://facebook.github.io/jest/docs/en/troubleshooting.html
I did something different, that may account for why the jest mocking wasn't working.
Would be interested to hear if you get all working.
On 10 Sep 2017, at 22:00, Vikas Kumar ***@***.***> wrote:
@gbatterbee Are you able to run debug test on simple CRA app?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Will take a look at my code over the weekend. Definitely got my break points bring hit.
Shouldn't be this difficult, should it. Pretty fundamental requirement
On 10 Sep 2017, at 23:44, Vikas Kumar ***@***.***> wrote:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"runtimeArgs": [
"--inspect-brk",
"test"
],
"args": [
"--runInBand",
"--no-cache",
"--env=jsdom"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
this config start the debugger and ran the test but never hit the breakpoint
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Version 2.5.0 introduces a new config file for jest, that is necessary for the tests to run. If you were previously running a version older than v2.5.0 and upgraded to v2.5.0 or newer, you need to manually add the new file, or else you'll get an error similar to this when trying to run your tests:
Testsuitefailedtorun{"messageText": "Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.","category": 1,"code": 5012}
To fix this, create a new file in the root of the project called tsconfig.test.json, and paste the content of this file into it. Everything should work now. For more info, please see this issue.
batchuVikaskumargd, gbatterbee, cttobin and jtmthf
Activity
[-]Debug Tests[/-][+]Debug Tests in Visual Studio Code[/+]gbatterbee commentedon Aug 13, 2017
did you find a way to do this?
Vikaskumargd commentedon Aug 13, 2017
No , all of them were failed attempts. 😔
Vikaskumargd commentedon Sep 10, 2017
Hi @gbatterbee , do you find any solution for this?
gbatterbee commentedon Sep 10, 2017
gbatterbee commentedon Sep 10, 2017
Vikaskumargd commentedon Sep 10, 2017
@gbatterbee Are you able to run debug test on simple CRA app?
gbatterbee commentedon Sep 10, 2017
Vikaskumargd commentedon Sep 10, 2017
nope this doesn't work for me :(
Vikaskumargd commentedon Sep 10, 2017
this config start the debugger and ran the test but never hit the breakpoint
gbatterbee commentedon Sep 11, 2017
Vikaskumargd commentedon Sep 13, 2017
Thanks @gbatterbee
please let me know the config when you'll available.
Vikaskumargd commentedon Sep 19, 2017
From Typescript
<2.5.0
to>=2.5.0
Version
2.5.0
introduces a new config file for jest, that is necessary for the tests to run. If you were previously running a version older thanv2.5.0
and upgraded tov2.5.0
or newer, you need to manually add the new file, or else you'll get an error similar to this when trying to run your tests:To fix this, create a new file in the root of the project called
tsconfig.test.json
, and paste the content of this file into it. Everything should work now. For more info, please see this issue.gbatterbee commentedon Sep 21, 2017
This makes me a very happy person :D
Thanks for sharing @Vikaskumargd
jednano commentedon Feb 23, 2018
Moving
test
to theruntimeArgs
didn't work for me.--inspect-brk
didn't get rid of that deprecation warning either, so this is what worked for me...