UNPKG

openai-plugins

Version:

A TypeScript library that provides an OpenAI-compatible client for the Model Context Protocol (MCP).

34 lines (27 loc) 1.01 kB
/** * Basic tests for index exports */ describe('Index exports', () => { // This is a set of smoke tests to make sure the module is basically working test('The module can be imported', () => { // Import the module const module = require('../dist/openai-mcp'); // Should be defined expect(module).toBeDefined(); }); test('The module exports a default value or an OpenAI class', () => { const module = require('../dist/openai-mcp'); // Either we have a default export or an OpenAI export const hasExport = (typeof module.default === 'function') || (typeof module.OpenAI === 'function'); expect(hasExport).toBe(true); }); test('The module exports utility functions', () => { const module = require('../dist/openai-mcp'); // Check for utility functions expect(typeof module.setMcpLogLevel).toBe('function'); expect(typeof module.log).toBe('function'); expect(module.MCP_LOG_LVL).toBeDefined(); }); });