Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ynnjs/karma-server

Start a http server based on Ynn.
https://github.com/ynnjs/karma-server

Last synced: about 1 month ago
JSON representation

Start a http server based on Ynn.

Awesome Lists containing this project

README

        

# karma-server

Building a http server for testing easily. Based on [Ynn](https://github.com/ynnjs/ynn);

## Install
```js
npm i --save-dev karma-server
```

## Configuration

```js
config.set( {
frameworks : [ 'server' ],
server : {
namespace : 'S',
root : 'test/server',
static : 'test/server',
modules : {
home : './home'
}
}
} )

```

Code in test cases:
```js
it( 'xx', () => {
fetch( S.host );
} );
```