0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/plugin-server/functional_tests/jest.setup.ts
Harry Waye 3c057e9fbd
ci(plugin-server): fix functional tests running forever (#13033)
* 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
2022-11-30 13:43:36 +00:00

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())