Documentation Home
This page is for an older version of jasmine-browser-runner (0.7.0).
The current stable version of jasmine-browser-runner is: 2.5. You can also look at the docs for the next release: Edge

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

clearReporters :boolean|undefined

Whether to remove Jasmine's default reporters before executing the suite.

Type:
  • boolean | undefined

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

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

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