start_jupyter_server.spec.ts 486 B

123456789101112131415161718
  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. const server = new JupyterServer();
  10. const url = await server.start();
  11. await fetch(URLExt.join(url, 'api'));
  12. await server.shutdown();
  13. });
  14. });