Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-465184: TypeScript: tests are not found in Unit Test Runner

$
0
0
Reporter Vladimir Belov (Vladimir.Belov) Vladimir Belov (Vladimir.Belov)
Created Jun 22, 2017 7:10:53 PM
Updated Apr 18, 2018 8:56:31 AM
Subsystem TypeScript
Assignee Vladimir Belov (Vladimir.Belov)
Priority Critical
State In Progress
Type Bug
Fix version No Fix versions
Affected versions 2017.1.2, 2017.1.1, 2017.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
1. Create TypeScript project in VS 2017
2. Install Nuget packages for Jasmine
3. Install packages required by modularity support: SystemJS, RequireJS or others
4. Add following files:

tsconfig.json

"compilerOptions": {
"module": "system" /* Try to change: "commonjs", "amd", "umd", "es2015" */
},

src/app.ts
export class App {
getTrue() {
return true;
}
}

tests/app_tests.ts
import { App } from ‘../src/app’;

describe("suite", () => {
it("test", () => {
var app = new App();
expect(app.getTrue()).toBeTruthy();
});
});

When tests are runned, Jasmine shows "no specs found" and R#-tests are cancelled by timeout.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>