/** * Options for {@link overrideTargetPaths}. * * @public */ interface OverrideTargetPathsOptions { /** The target package directory. */ dir: string; /** The target monorepo root directory. Defaults to `dir` if not provided. */ rootDir?: string; } /** * Return value of {@link overrideTargetPaths}. * * @public */ interface TargetPathsOverride { /** Restores `targetPaths` to its normal behavior. */ restore(): void; } /** * Overrides the `targetPaths` singleton to resolve from the given directory * instead of `process.cwd()`. * * When called with a string, that value is used as both `dir` and `rootDir`. * Pass an options object to set them independently. * * Calling `restore()` on the return value reverts to normal behavior. * Restoration is only needed if you want to change the override within a * test file; each Jest worker starts with a clean module state. * * @public */ declare function overrideTargetPaths(dirOrOptions: string | OverrideTargetPathsOptions): TargetPathsOverride; export { overrideTargetPaths }; export type { OverrideTargetPathsOptions, TargetPathsOverride };