Documentation Home
This page describes a pre-release version of jasmine-browser-runner (3.0.0-beta-1). There may be additional changes, including breaking changes, before the final 3.0.0 release.
The current stable version of jasmine-browser-runner is 2.5.

Interface: ServerCtorOptions

ServerCtorOptions

Specifies the configuration for Server. The only required properties are specDir and srcDir, although in practice you'll almost certainly want to provide at least specFiles and srcFiles as well.

See:

Members

cssFiles :Array.<string>|undefined

An array of CSS file paths or globs that match CSS files. Each path or glob will be evaluated relative to ServerCtorOptions#srcDir.

Type:
  • Array.<string> | undefined

esmFilenameExtension :string|undefined

The file extension used by ES modules

Type:
  • string | undefined
Default Value:
  • ".mjs"

helpers :Array.<string>|undefined

An array of helper file paths or globs that match helper files. Each path or glob will be evaluated relative to ServerCtorOptions#specDir. Helpers are loaded before specs.

Type:
  • Array.<string> | undefined

hostname :string|undefined

The hostname to use in the URL given to browsers.

Type:
  • string | undefined
Default Value:
  • "localhost"

jasmineCore :any|undefined

The instance of jasmine-core to use. Use this if you need to load jasmine-core in a nonstandard way. Most of the time it should be omitted.

Type:
  • any | undefined

listenAddress :string|undefined

The hostname or IP address of the network interface to listen on. For security, jasmine-browser-runner will listen to localhost unless if this property is not specified. Set to "*" to listen on all interfaces, which may be required by some remote Selenium grids.

Type:
  • string | undefined
Default Value:
  • "localhost"

port :number|undefined

The port to listen on.

Type:
  • number | undefined

projectBaseDir :string|undefined

The root directory of the project.

Type:
  • string | undefined

specDir :string

The directory that spec files are contained in, relative to ServerCtorOptions#projectBaseDir.

Type:
  • string

specFiles :Array.<string>|undefined

An array of spec file paths or globs that match spec files. Each path or glob will be evaluated relative to ServerCtorOptions#specDir.

Type:
  • Array.<string> | undefined

srcDir :string

The directory that source files are contained in, relative to ServerCtorOptions#projectBaseDir.

Type:
  • string

srcFiles :Array.<string>|undefined

An array of sourec file paths or globs that match source files. Each path or glob will be evaluated relative to ServerCtorOptions#srcDir.

Type:
  • Array.<string> | undefined

tlsCert :string

The path to a TLS cert. Activates HTTPS mode. If specified, tlsKey must also be specified.

Type:
  • string

tlsKey :string

The path to a TLS key. Activates HTTPS mode. If specified, tlsCert must also be specified.

Type:
  • string

useHtmlReporter :boolean|undefined

Whether to use Jasmine's default HTML reporter.

Type:
  • boolean | undefined
Default Value:
  • true