mirror of https://github.com/lukechilds/ava.git
Browse Source
Since #713 the API no longer emits 'dependencies' events. These are emitted instead by the RunStatus, which can be obtained by listening to the 'test-run' event on the API. The watcher tests use a mocked API object which wasn't updated to reflect these changes. Consequently dependency tracking was broken since #713 was merged. This commit fixes the watcher and the corresponding tests. I've also added an integration test which does not rely on mocking, helping us detect breakage sooner.browser-support
Mark Wubben
9 years ago
committed by
James Talmage
6 changed files with 59 additions and 7 deletions
@ -0,0 +1,2 @@ |
|||||
|
'use strict'; |
||||
|
module.exports = true; |
@ -0,0 +1,6 @@ |
|||||
|
import test from '../../../../'; |
||||
|
import dependency from './source.js'; |
||||
|
|
||||
|
test('works', t => { |
||||
|
t.truthy(dependency); |
||||
|
}); |
@ -0,0 +1,5 @@ |
|||||
|
import test from '../../../../'; |
||||
|
|
||||
|
test('works', t => { |
||||
|
t.pass(); |
||||
|
}); |
Loading…
Reference in new issue