UNPKG

@graphiql/react

Version:

[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)

15 lines (12 loc) 514 B
'use no memo'; import { importCodeMirror } from '../common'; describe('importCodeMirror', () => { it('should dynamically load codemirror module', async () => { const CodeMirror = await importCodeMirror([]); expect(typeof CodeMirror === 'function').toBeTruthy(); }); it('should dynamically load codemirror module without common addons', async () => { const CodeMirror = await importCodeMirror([], { useCommonAddons: false }); expect(typeof CodeMirror === 'function').toBeTruthy(); }); });