1.0.0 ā€¢ Published 7 years ago

wdio-spa-server-service v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

wdio-spa-server-service

Wrapper around spa-server for testing single-page apps with wdio. Specify a folder path in your wdio config, and spa-server will host any files in there on a little local server. Best used for testing fancy javascript single-page apps!

with šŸ’œ, ā€” @helloitsdan

Using the service

Add wdio-spa-server-service as a service in your wdio.conf.js. The spa-server instance can then be configured by creating an spaServer block in your config file.

...
  services: [
    'spa-server',
  ],

  spaServer: {
    path: './build',
    port: 80,
    fallback: 'application.html',
  }
...

This config block is passed directly down to spa-server, so you can make use of any configuration listed in the spa-server documentation.