Skip to content

Commit

Permalink
chore: remove another export = from jest-haste-map
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 9, 2022
1 parent d7f628c commit 5f1d31c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/jest-haste-map/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import type {
SerializableModuleMap,
WorkerMetadata,
} from './types';
import FSEventsWatcher = require('./watchers/FSEventsWatcher');
import {FSEventsWatcher} from './watchers/FSEventsWatcher';
// @ts-expect-error: not converted to TypeScript - it's a fork: https://github.com/facebook/jest/pull/10919
import NodeWatcher from './watchers/NodeWatcher';
// @ts-expect-error: not converted to TypeScript - it's a fork: https://github.com/facebook/jest/pull/5387
Expand Down
4 changes: 1 addition & 3 deletions packages/jest-haste-map/src/watchers/FSEventsWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type FsEventsWatcherEvent =
* Export `FSEventsWatcher` class.
* Watches `dir`.
*/
class FSEventsWatcher extends EventEmitter {
export class FSEventsWatcher extends EventEmitter {
public readonly root: string;
public readonly ignored?: Matcher;
public readonly glob: Array<string>;
Expand Down Expand Up @@ -187,5 +187,3 @@ class FSEventsWatcher extends EventEmitter {
this.emit(ALL_EVENT, type, file, this.root, stat);
}
}

export = FSEventsWatcher;

0 comments on commit 5f1d31c

Please sign in to comment.