インターフェイス: JasmineOptions

JasmineOptions

オプション

Jasmine コンストラクタ

メンバー

globals :boolean|undefined

Jasmine の spec-writing インターフェイスを構成するグローバル変数 (describe、it など) を作成するかどうか。false に設定すると、spec-writing インターフェイスには jasmine-core の noGlobals メソッドを使用してアクセスできます。例:

const {describe, it, expect, jasmine} = require('jasmine-core').noGlobals();
  • タイプ
boolean | undefined
  • 初期値

true

projectBaseDir :string|undefined

const {describe, it, expect, jasmine} = require('jasmine-core').noGlobals();
  • プロジェクトのベースディレクトリへのパス。絶対パスまたは現在の作業ディレクトリからの相対パスを指定できます。指定されていない場合、現在の作業ディレクトリが使用されます。