Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

Commented Unassigned: Support for node.js serverside code [142]

$
0
0
When developing both server-side and client-side code in the same project it will be a great advancement to be able to run jasmine unit tests for both in visual studio.

Currently client-side tests can be executed in VS but the server-side tests need to be executed manually using .\node_modules\.bin\jasmine-node .\tests

```
/// <reference path="jasmine.d.ts" />
/// <reference path="node.d.ts" />

import http = require('http');

describe("Http status code", () => {
it("200 is OK", () => {
expect(http.STATUS_CODES[200]).toEqual('OK');
});
});
```

Comments: Being able to run mocha tests written in Typescript for Node.js would make this such a fantastic development tool!

Viewing all articles
Browse latest Browse all 1864

Trending Articles



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