ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Unit Testing Assistance in TypeScript

Last modified: 11 February 2024

QUnit and Jasmine works perfectly for testing TypeScript code. ReSharper helps you discover and run unit tests providing the same unit testing features as for JavaScript.

If your test file references and external JavaScript library using a declaration file *.d.ts, ReSharper will search the original JavaScript file by the name of the *.d.ts file. For example, if you have the following reference in your TypeScript test file ///<reference path="Views/Lib/jquery.d.ts"/>, ReSharper will search for the closest match among all files that named jquery[any symbols].js.