(fix) do not transitively rely on deprecated lodash deps (#175)
Signed-off-by: Thibault Sottiaux <tibo@openai.com>
This commit is contained in:
committed by
GitHub
parent
057f113c6d
commit
f3f9e41a15
@@ -9,14 +9,13 @@ import * as React from "react";
|
||||
import { describe, it, expect, vi } from "vitest";
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Mock <ink-select-input> so we can capture the props that TypeaheadOverlay
|
||||
// Mock <select-input> so we can capture the props that TypeaheadOverlay
|
||||
// forwards without rendering the real component (which would require a full
|
||||
// Ink TTY environment).
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
let receivedItems: Array<{ label: string; value: string }> | null = null;
|
||||
|
||||
vi.mock("ink-select-input", () => {
|
||||
vi.mock("../src/components/select-input/select-input.js", () => {
|
||||
return {
|
||||
default: (props: any) => {
|
||||
receivedItems = props.items;
|
||||
|
||||
Reference in New Issue
Block a user