Skip to content

Commit

Permalink
dependency resolver test: get rid of watchman warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeysal committed Feb 18, 2019
1 parent b60516f commit cac1d7b
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ beforeEach(() => {
rootDir: '.',
roots: ['./packages/jest-resolve-dependencies'],
});
return Runtime.createContext(config, {maxWorkers}).then((hasteMap: any) => {
dependencyResolver = new DependencyResolver(
hasteMap.resolver,
hasteMap.hasteFS,
buildSnapshotResolver(config),
);
});
return Runtime.createContext(config, {maxWorkers, watchman: false}).then(
(hasteMap: any) => {
dependencyResolver = new DependencyResolver(
hasteMap.resolver,
hasteMap.hasteFS,
buildSnapshotResolver(config),
);
},
);
});

test('resolves no dependencies for non-existent path', () => {
Expand Down

0 comments on commit cac1d7b

Please sign in to comment.