0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +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())