File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 114114 " summary"
115115 ]
116116 ],
117+ "setupFiles" : [" ./test/setup-jest.ts" ],
117118 "testEnvironment" : " node" ,
118119 "testMatch" : [
119120 " <rootDir>/test/**/*.test.ts"
Original file line number Diff line number Diff line change 1+ // Note that in a single process our tests create many instances of CodeAnalyzer. For each instance of CodeAnalyzer, a
2+ // call to process.addListener is made to cleanup the root working folder if needed. See
3+ // https://github.com/forcedotcom/code-analyzer-core/blob/dev/packages/code-analyzer-core/src/code-analyzer.ts#L121
4+ // Because of this we would get a lot of warnings. For example:
5+ // (node:2039) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process].
6+ // To suppress these warnings, it is easiest to just allow the process running these tests to allow an infinite amount
7+ // of listeners. So we do that here (where 0 means infinite):
8+ process . setMaxListeners ( 0 ) ;
You can’t perform that action at this time.
0 commit comments