Skip to content

Commit

Permalink
Revert test removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillick committed Jun 26, 2023
1 parent a104f71 commit 25cb3c0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test-provider/test-item-data.test.ts
Expand Up @@ -1423,6 +1423,22 @@ describe('test-item-data', () => {
});
});
});
it('scheduled and start events will do deep item status update', () => {
const process = mockScheduleProcess(context);
const testFileData = context.getData(env.testFile);

testFileData.scheduleTest(jestRun);
expect(jestRun.vscodeRun.enqueued).toHaveBeenCalledTimes(2);
[env.testFile, env.testBlock].forEach((t) =>
expect(jestRun.vscodeRun.enqueued).toHaveBeenCalledWith(t)
);

env.onRunEvent({ type: 'start', process });
expect(jestRun.vscodeRun.started).toHaveBeenCalledTimes(2);
[env.testFile, env.testBlock].forEach((t) =>
expect(jestRun.vscodeRun.started).toHaveBeenCalledWith(t)
);
});
it('log long-run event', () => {
const process = mockScheduleProcess(context);

Expand Down

0 comments on commit 25cb3c0

Please sign in to comment.