From 81980b5f57f6b0f233da0ac47cb39184d501f055 Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Wed, 16 Oct 2024 15:08:41 +0530 Subject: [PATCH] fix: userContext-test-for-custom-framework --- test/userContext.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/userContext.test.js b/test/userContext.test.js index 0edb036da..c9f03becd 100644 --- a/test/userContext.test.js +++ b/test/userContext.test.js @@ -549,7 +549,12 @@ describe(`userContext: ${printPath("[test/userContext.test.js]")}`, function () { fileName: "lib/ts/nextjs.ts", shouldNotContain: ["userContext: Record", "userContext?: UserContext"], - canContain: [{ text: "userContext?: Record", count: 2 }], + canContain: [{ text: "userContext?: Record", count: 1 }], + }, + { + fileName: "lib/ts/customFramework.ts", + shouldNotContain: ["userContext: Record", "userContext?: UserContext"], + canContain: [{ text: "userContext?: Record", count: 1 }], }, ];