Skip to content

Commit

Permalink
Correctly instantiate Watcher instance when running ember test --serve
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Dec 9, 2022
1 parent dcb36aa commit 11dceff
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/commands/test.js
Expand Up @@ -182,13 +182,15 @@ module.exports = Command.extend({
session = this.runTask('TestServer', testOptions);
} else {
let builder = new this.Builder(testOptions);
testOptions.watcher = new this.Watcher(
Object.assign(this._env(), {
builder,
verbose: false,
options: commandOptions,
})
);
testOptions.watcher = (
await this.Watcher.build(
Object.assign(this._env(), {
builder,
verbose: false,
options: commandOptions,
})
)
).watcher;
session = this.runTask('TestServer', testOptions).finally(() => builder.cleanup());
}
} else if (hasBuild) {
Expand Down

0 comments on commit 11dceff

Please sign in to comment.