Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ynnjs/karma-server
- Owner: ynnjs
- License: mit
- Created: 2018-09-16T10:03:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T10:21:46.000Z (about 6 years ago)
- Last Synced: 2024-12-11T22:27:15.297Z (about 1 month ago)
- Language: JavaScript
- Size: 210 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 );
} );
```