Skip to content

Commit ee144de

Browse files
committed
test(web): pin the secrets search test to the disabled flag
Signed-off-by: Yordis Prieto <[email protected]>
1 parent 5925022 commit ee144de

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/src/components/settings/settingsSearch.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import {
2020
type SettingsSearchItem,
2121
} from "./settingsSearch";
2222

23+
vi.mock("~/env", async (importOriginal) => ({
24+
...(await importOriginal<typeof import("~/env")>()),
25+
isSecretsFeatureEnabled: false,
26+
}));
27+
2328
const ITEMS: ReadonlyArray<SettingsSearchItem> = [
2429
{
2530
id: "word-wrap",
@@ -60,7 +65,7 @@ describe("searchSettings", () => {
6065
expect(searchSettings("long lines", ITEMS).map((item) => item.id)).toEqual(["word-wrap"]);
6166
});
6267

63-
it("hides secret providers while T3CODE_FEATURE_SECRETS is unset", () => {
68+
it("hides secret providers while the secrets feature is disabled", () => {
6469
expect(searchSettings("secret providers").map((item) => item.id)).not.toContain(
6570
"secret-providers",
6671
);

0 commit comments

Comments
 (0)