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');