From 7afbe9a431e14c39cf2c24e5b1be0c47af89f379 Mon Sep 17 00:00:00 2001 From: Nico Arqueros <1622112+nicarq@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:34:12 -0500 Subject: [PATCH] fix typescript test --- apps/shinkai-tool-duckduckgo-search/src/index.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/shinkai-tool-duckduckgo-search/src/index.test.ts b/apps/shinkai-tool-duckduckgo-search/src/index.test.ts index 0128037..cc4dc76 100644 --- a/apps/shinkai-tool-duckduckgo-search/src/index.test.ts +++ b/apps/shinkai-tool-duckduckgo-search/src/index.test.ts @@ -1,3 +1,7 @@ +import { TextEncoder as NodeTextEncoder, TextDecoder as NodeTextDecoder } from 'util'; +global.TextEncoder = NodeTextEncoder as any; +global.TextDecoder = NodeTextDecoder as any; + import { Tool } from '../src/index'; global.fetch = require('node-fetch');