In new jasmine-ts version, you have to include the jasmine.json to the args as this:

{
  "type": "node",
  "request": "launch",
  "name": "Jasmine Current File",
  "program": "${workspaceFolder}/node_modules/jasmine-ts/lib/index",
  "args": ["--config=jasmine.json", "${file}"],
  "console": "integratedTerminal",
  "internalConsoleOptions": "neverOpen"
}

To avoid this issue:

No specs found Finished in 0.003 seconds Incomplete: No specs found Randomized with seed 60766 (jasmine --random=true --seed=60766)

Answer from isaacfi on Stack Overflow
๐ŸŒ
Mcomella
mcomella.com โ€บ blog โ€บ 2024 โ€บ vscode-debugger-tsjasminenode.html
Debug Jasmine Tests in TypeScript on Node.js With VS Code | mcomella.com
This post shows you how to configure the Visual Studio Code debugger to run on Jasmine unit tests written in TypeScript using Node.js as the test runner with minimal dependencies.
Discussions

angularjs - How to debug jasmine karma tests with VSCode tool - Stack Overflow
I am using Visual Studio Code for writing jasmine and karma based unit test cases. I would like to know if there is a way to debug tests in vs code tool itself. More on stackoverflow.com
๐ŸŒ stackoverflow.com
typescript - How to run jasmine tests in visual studio code? - Stack Overflow
I have setup visual studio code with jasmine and typescript installed. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Setting breakpoints in Typescript Jasmine tests with Visual Studio Code - Stack Overflow
I am trying to set up a launch configuration in Visual Studio Code so that I can debug my unit tests. My tests are written in Typescript. The tests and the code they test are compiled into a singl... More on stackoverflow.com
๐ŸŒ stackoverflow.com
April 18, 2016
Debugging Jasmine Specs using VSCode - javascript
Is there any way I can debug my code (Node.js) and jasmine tests through VS Code? I have a spec in which I'm creating a spy, but my assertion that the spy should be called is returning false, even ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Jasmine Test Explorer - Visual Studio Marketplace
Extension for Visual Studio Code - Run your Jasmine tests in the Sidebar of Visual Studio Code
๐ŸŒ
GitHub
github.com โ€บ hbenl โ€บ vscode-jasmine-test-adapter
GitHub - hbenl/vscode-jasmine-test-adapter: Jasmine Test Adapter for the VS Code Test Explorer ยท GitHub
If your tests are written in Typescript, install the ts-node npm package (if you haven't done so already) and set the jasmineExplorer.nodeArgv configuration property to ["-r", "ts-node/register"]. This is equivalent to running Jasmine with the command line ยท node -r ts-node/register ./node_modules/.bin/jasmine ยท Note that breakpoints may not work initially (this is a known limitation when debugging with ts-node in VS Code), so you may have to use debugger statements instead.
Starred by 21 users
Forked by 20 users
Languages ย  TypeScript
๐ŸŒ
Codewithdan
blog.codewithdan.com โ€บ debugging-jasmine-ts-unit-tests-in-vs-code
Debugging jasmine-ts Unit Tests in VS Code - Code with Dan Blog
October 11, 2019 - Since my unit tests were running ... unit test spec directly in VS Code, add a new debug configuration (click the gear icon in the debug pane), and add the following into the launch.json file:...
Find elsewhere
Top answer
1 of 2
2

The following configuration works fine for me and allow to debug jasmine tests. In your launch.json:

{
    // Name of configuration; appears in the launch configuration drop down menu.
    "name": "Launch Unit Tests",
    // Type of configuration.
    "type": "node",
    // Workspace relative or absolute path to the program.
    "program": "spec/runner.ts",
    // Automatically stop program after launch.
    "stopOnEntry": false,
    // Command line arguments passed to the program.
    "args": [],
    // Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
    "cwd": ".",
    // Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
    "runtimeExecutable": null,
    // Optional arguments passed to the runtime executable.
    "runtimeArgs": ["--nolazy"],
    // Environment variables passed to the program.
    "env": {
        "NODE_ENV": "development"
    },
    // Use JavaScript source maps (if they exist).
    "sourceMaps": true,
    // If JavaScript source maps are enabled, the generated code is expected in this directory.
    "outDir": "dist/spec",
    "request": "launch"
}

The runner.ts is as follows:

'use strict';

var Jasmine = require('jasmine');
var j = new Jasmine();

j.loadConfigFile('spec/support/jasmine.json');
j.configureDefaultReporter({
    showColors: true
});
j.execute();

The project file structure is:

-spec
--runner.ts
--support
----jasmine.json
--folderWithTests1
-dist
--spec
.....

Note - "dist" is the folder where spec ts files are built to. Therefore "outDir" is set to "dist/spec".

Hope this will help.

2 of 2
1

I've updated VS Code to 0.10.9 and Typescript to 1.8.2 and this now "just works".

๐ŸŒ
Meticulous
meticulous.ai โ€บ blog โ€บ typescript-unit-tests-with-debugging
TypeScript Unit Tests with Debugging
A short guide on how to set up TypeScript unit tests with debugging on VsCode, allowing you to set breakpoints on your unit tests.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ typescript โ€บ typescript-debugging
Debugging TypeScript
November 3, 2021 - If generated (transpiled) JavaScript files do not live next to their source, you can help the VS Code debugger locate them by setting the outFiles attribute in the launch configuration. Whenever you set a breakpoint in the original source, VS Code tries to find the generated source by searching the files specified by glob patterns in outFiles. TypeScript is great for writing client-side code as well as Node.js applications and you can debug client-side source code with the built-in Edge and Chrome debugger.
๐ŸŒ
YouTube
youtube.com โ€บ watch
My Node.js Visual Studio Code setup with Jasmine tests and debugging - YouTube
My setup for solving the Advent of Code daily challenges using Visual Studio Code, Node.js and Jasmine. Also shows how to debug node.js code with VS Code.
Published ย  December 17, 2017
๐ŸŒ
Tony Sneed's Blog
blog.tonysneed.com โ€บ 2016 โ€บ 02 โ€บ 27 โ€บ visual-studio-code-typescript-part-2
Getting Visual Studio Code Ready for TypeScript: Part 2 | Tony Sneed's Blog
March 3, 2016 - For simplicity Iโ€™m going to stick with Jasmine in this blog post, but feel free to use Mocha if that better suits your purpose. You can download a sample project with code for this blog post. You can also download my Yeoman generator for scaffolding new TypeScript projects for Visual Studio Code. Update: Since first publishing this blog post, I added a section on Debugging Jasmine Tests in VS Code, which you can find at the end of the article.
๐ŸŒ
GitHub
gist.github.com โ€บ Terry-Su โ€บ 17f3c7af2d6649a94948279613d854bd
Debug jasmine typescript files in vscode ยท GitHub
Debug jasmine typescript files in vscode. GitHub Gist: instantly share code, notes, and snippets.
๐ŸŒ
Wallabyjs
wallabyjs.com โ€บ tech โ€บ jasmine
Faster way to run, debug and view results of Jasmine tests
January 12, 2026 - Wallaby runs your JavaScript and TypeScript tests immediately as you type in VS Code, WebStorm and other editors, highlighting results next to your code.
๐ŸŒ
Zelig880
zelig880.com โ€บ home โ€บ how to debug jasmine-es6 in visual studio code
How to debug Jasmine-es6 in visual studio code - Zelig880 -
January 2, 2019 - And it turned out to be one of ... to Debug Jasmine-es6 directly in the browser, but it is possible by using the debug feature provided by Visual Studio Code....
๐ŸŒ
Swaminathan Vetri
swaminathanvetri.in โ€บ 2017 โ€บ 04 โ€บ 07 โ€บ debugging-jasmine-unit-tests-running-with-karma-runner-in-vs-code
Debugging Jasmine Unit tests running with Karma runner in VS Code โ€“ Swaminathan Vetri
April 7, 2017 - I have been working on a large scale angular 1.x based application which has humongous number of unit tests written using Jasmine framework and executed using Karma runner. Of late, as the project grew bigger, it became a little trickier to write/maintain the right unit tests. But with the right code editor/IDE, we donโ€™t have to worry about that fact. In this blog post, I will be walking you through how we can leverage the debugging capabilities of Visual Studio Code to debug the jasmine unit tests.
๐ŸŒ
Medium
medium.com โ€บ @jakubsynowiec โ€บ debugging-typescript-jest-unit-tests-with-visual-studio-code-36cd16865bb0
Debugging TypeScript Jest Tests With Visual Studio Code | by Jakub Synowiec | Medium
May 1, 2018 - VSCode includes some great debugging features for JavaScript and TypeScript. You can also install custom debuggers for different languages. But sometimes setting all necessary options can be troublesome.
๐ŸŒ
GitHub
github.com โ€บ tonysneed โ€บ Demo.VSCode.TypeScript
GitHub - tonysneed/Demo.VSCode.TypeScript ยท GitHub
Select Debug Current TypeScript Test dropdown and press F5 to launch the debugger and stop at the breakpoint. Launch the build and test tasks from within VS Code. Press Cmd+Shift+B to build.
Starred by 4 users
Forked by 5 users
Languages ย  TypeScript 99.4% | HTML 0.6%