mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
3c057e9fbd
* ci(plugin-server): fix functional tests running forever Seems that one of the changes I made resulted in the tests running forever in GitHub Actions. * make sure pino transport closed in workers
9 lines
387 B
TypeScript
9 lines
387 B
TypeScript
import { status } from '../src/utils/status'
|
|
|
|
// NOTE: in testing we use the pino-pretty transport, which results in a handle
|
|
// that we need to close to allow Jest to exit properly.
|
|
// TODO: update jest modules path to not include the plugin-server/src/ i.e.
|
|
// nothing in the functional tests should be importing anything from the
|
|
// plugin-server code.
|
|
afterAll(() => status.close())
|