start_jupyter_server.spec.ts 514 B

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