Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 5, 2020
1 parent 0709aa8 commit d03c16a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/fake-promises/immediate/__tests__/generator.test.js
Expand Up @@ -13,6 +13,7 @@ test('fake promises', () => {
someValue = 'foobar';
});

// this function is only available when using legacy fake timers
jest.runAllImmediates();

expect(someValue).toBe('foobar');
Expand Down
2 changes: 1 addition & 1 deletion e2e/fake-promises/immediate/package.json
@@ -1,6 +1,6 @@
{
"jest": {
"timers": "fake",
"timers": "legacy",
"setupFiles": [
"<rootDir>/fake-promises"
],
Expand Down

0 comments on commit d03c16a

Please sign in to comment.