成員
failSpecWithNoExpectations :boolean|undefined
對於不包含預期的規格,是否讓它失敗。
類型
- boolean | undefined
- 預設值
- false
helpers :Array.<string>|undefined
已符合幫手檔案的幫手檔案路徑或Glob陣列。每個路徑或Glob都將相對於規格目錄進行評估。幫手會在規格之前載入。
類型
- Array.<string> | undefined
jsLoader :string|undefined
指定如何載入以 .js 結尾的檔案名稱。合法值為“require”和“import”。在所有情況下,“import”應該是安全的,並且如果您的專案包含以 .js 結尾的檔案名稱的 ES 模組,則需要這樣做。
類型
- string | undefined
- 預設值
- "require"
random :boolean|undefined
是否以隨機順序執行規格。
類型
- boolean | undefined
- 預設值
- true
requires :Array.<string>|undefined
執行一開始就會透過 require() 載入的模組名稱陣列。
類型
- Array.<string> | undefined
spec_dir :string|undefined
規格檔案所在的目錄,相對於專案基礎目錄。
類型
- string | undefined
spec_files :Array.<string>|undefined
已符合幫手檔案的規格檔案路徑或Glob陣列。每個路徑或Glob都將相對於規格目錄進行評估。
類型
- Array.<string> | undefined
stopOnSpecFailure :boolean|undefined
在第一個規格失敗後是否要停止套件執行。
類型
- boolean | undefined
- 預設值
- false
stopSpecOnExpectationFailure :boolean|undefined
在第一次預期失敗時,是否要停止每個規格。
類型
- boolean | undefined
- 預設值
- false