--- id: getCurrentInstance title: getCurrentInstance --- # Function: getCurrentInstance() ```ts function getCurrentInstance(): TestInstance | undefined; ``` Defined in: [helpers.ts:34](https://github.com/crutchcorn/cli-testing-library/blob/main/packages/cli-testing-library/src/helpers.ts#L34) ## Returns `TestInstance` \| `undefined`