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

The hostname to use. This influences both the URL given to browsers and the addresses on which the socket listens. If blank, for backward compatibility, the browsers will be pointed to localhost, but the listening socket will listen on all IPs.

Type:
  • string

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

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