mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(specs): Override configDirPath when running specs within app. Fixes #1133
This commit is contained in:
parent
025d4b4081
commit
2376dd1a0f
1 changed files with 6 additions and 1 deletions
|
@ -539,4 +539,9 @@ class Application
|
|||
isSpec = true
|
||||
devMode = true
|
||||
safeMode ?= false
|
||||
new NylasWindow({bootstrapScript, @configDirPath, resourcePath, exitWhenDone, isSpec, devMode, specDirectory, specFilePattern, logFile, safeMode, showSpecsInWindow})
|
||||
|
||||
# Important: Use .nylas-spec instead of .nylas to avoid overwriting the
|
||||
# user's real email config!
|
||||
configDirPath = path.join(app.getPath('home'), '.nylas-spec')
|
||||
|
||||
new NylasWindow({bootstrapScript, configDirPath, resourcePath, exitWhenDone, isSpec, devMode, specDirectory, specFilePattern, logFile, safeMode, showSpecsInWindow})
|
||||
|
|
Loading…
Reference in a new issue