Skip to content

ynnjs/karma-server

Repository files navigation

karma-server

Building a http server for testing easily. Based on Ynn;

Install

npm i --save-dev karma-server

Configuration

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

Code in test cases:

it( 'xx', () => {
    fetch( S.host );
} );

About

Start a http server based on Ynn.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published