start_jupyter_server.spec.ts 498 B

1234567891011121314151617
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. const fetch = require('node-fetch');
  4. import { JupyterServer } from '../src';
  5. import { URLExt } from '@jupyterlab/coreutils';
  6. describe('JupyterServer', () => {
  7. it('should start the server', async () => {
  8. jest.setTimeout(20000);
  9. const server = new JupyterServer();
  10. const url = await server.start();
  11. await fetch(URLExt.join(url, 'api'));
  12. await server.shutdown();
  13. });
  14. });