Browse Source

Use testutils package

Steven Silvester 6 years ago
parent
commit
4832eeaed0
53 changed files with 57 additions and 34 deletions
  1. 1 0
      tests/test-application/package.json
  2. 1 0
      tests/test-apputils/package.json
  3. 1 1
      tests/test-apputils/src/clientsession.spec.ts
  4. 5 1
      tests/test-apputils/src/dialog.spec.tsx
  5. 1 3
      tests/test-apputils/src/instancetracker.spec.ts
  6. 1 1
      tests/test-apputils/src/toolbar.spec.ts
  7. 1 0
      tests/test-cells/package.json
  8. 1 1
      tests/test-cells/src/model.spec.ts
  9. 1 1
      tests/test-cells/src/widget.spec.ts
  10. 1 0
      tests/test-codeeditor/package.json
  11. 1 0
      tests/test-codemirror/package.json
  12. 1 0
      tests/test-completer/package.json
  13. 1 1
      tests/test-completer/src/handler.spec.ts
  14. 1 0
      tests/test-console/package.json
  15. 1 1
      tests/test-console/src/foreign.spec.ts
  16. 1 1
      tests/test-console/src/history.spec.ts
  17. 1 1
      tests/test-console/src/panel.spec.ts
  18. 1 1
      tests/test-console/src/utils.ts
  19. 1 1
      tests/test-console/src/widget.spec.ts
  20. 1 0
      tests/test-coreutils/package.json
  21. 1 0
      tests/test-csvviewer/package.json
  22. 1 0
      tests/test-docmanager/package.json
  23. 1 1
      tests/test-docmanager/src/manager.spec.ts
  24. 1 1
      tests/test-docmanager/src/savehandler.spec.ts
  25. 1 1
      tests/test-docmanager/src/widgetmanager.spec.ts
  26. 1 0
      tests/test-docregistry/package.json
  27. 1 1
      tests/test-docregistry/src/context.spec.ts
  28. 1 1
      tests/test-docregistry/src/default.spec.ts
  29. 1 1
      tests/test-docregistry/src/mimedocument.spec.ts
  30. 1 0
      tests/test-filebrowser/package.json
  31. 1 1
      tests/test-filebrowser/src/model.spec.ts
  32. 1 0
      tests/test-fileeditor/package.json
  33. 1 0
      tests/test-imageviewer/package.json
  34. 1 1
      tests/test-imageviewer/src/widget.spec.ts
  35. 1 0
      tests/test-inspector/package.json
  36. 1 0
      tests/test-mainmenu/package.json
  37. 1 0
      tests/test-notebook/package.json
  38. 1 1
      tests/test-notebook/src/actions.spec.ts
  39. 1 1
      tests/test-notebook/src/celltools.spec.ts
  40. 1 1
      tests/test-notebook/src/default-toolbar.spec.ts
  41. 1 1
      tests/test-notebook/src/model.spec.ts
  42. 1 1
      tests/test-notebook/src/panel.spec.ts
  43. 1 1
      tests/test-notebook/src/tracker.spec.ts
  44. 1 1
      tests/test-notebook/src/widget.spec.ts
  45. 1 1
      tests/test-notebook/src/widgetfactory.spec.ts
  46. 1 0
      tests/test-observables/package.json
  47. 1 0
      tests/test-outputarea/package.json
  48. 1 1
      tests/test-outputarea/src/model.spec.ts
  49. 1 1
      tests/test-outputarea/src/widget.spec.ts
  50. 1 0
      tests/test-rendermime/package.json
  51. 1 1
      tests/test-rendermime/src/outputmodel.spec.ts
  52. 1 1
      tests/test-rendermime/src/registry.spec.ts
  53. 1 0
      tests/test-terminal/package.json

+ 1 - 0
tests/test-application/package.json

@@ -19,6 +19,7 @@
     "@jupyterlab/application": "^0.17.2",
     "@jupyterlab/apputils": "^0.17.2",
     "@jupyterlab/coreutils": "^2.0.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/commands": "^1.5.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",

+ 1 - 0
tests/test-apputils/package.json

@@ -18,6 +18,7 @@
   "dependencies": {
     "@jupyterlab/apputils": "^0.17.2",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/commands": "^1.5.0",
     "@phosphor/coreutils": "^1.3.0",

+ 1 - 1
tests/test-apputils/src/clientsession.spec.ts

@@ -9,7 +9,7 @@ import { ClientSession, IClientSession } from '@jupyterlab/apputils';
 
 import { UUID } from '@phosphor/coreutils';
 
-import { acceptDialog, dismissDialog } from '../../utils';
+import { acceptDialog, dismissDialog } from '@jupyterlab/testutils';
 
 describe('@jupyterlab/apputils', () => {
   describe('ClientSession', () => {

+ 5 - 1
tests/test-apputils/src/dialog.spec.tsx

@@ -15,7 +15,11 @@ import { generate, simulate } from 'simulate-event';
 
 import * as React from 'react';
 
-import { acceptDialog, dismissDialog, waitForDialog } from '../../utils';
+import {
+  acceptDialog,
+  dismissDialog,
+  waitForDialog
+} from '@jupyterlab/testutils';
 
 class TestDialog extends Dialog<any> {
   methods: string[] = [];

+ 1 - 3
tests/test-apputils/src/instancetracker.spec.ts

@@ -5,9 +5,7 @@ import { expect } from 'chai';
 
 import { InstanceTracker } from '@jupyterlab/apputils';
 
-import { PromiseDelegate } from '@phosphor/coreutils';
-
-import { ISignal, Signal } from '@phosphor/signaling';
+import { testEmission } from '@jupyterlab/testutils';
 
 import { each } from '@phosphor/algorithm';
 

+ 1 - 1
tests/test-apputils/src/toolbar.spec.ts

@@ -17,7 +17,7 @@ import { Widget } from '@phosphor/widgets';
 
 import { simulate } from 'simulate-event';
 
-import { createClientSession } from '../../utils';
+import { createClientSession } from '@jupyterlab/testutils';
 
 class LogToolbarButton extends ToolbarButton {
   events: string[] = [];

+ 1 - 0
tests/test-cells/package.json

@@ -21,6 +21,7 @@
     "@jupyterlab/codeeditor": "^0.17.2",
     "@jupyterlab/coreutils": "^2.0.2",
     "@jupyterlab/outputarea": "^0.17.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",

+ 1 - 1
tests/test-cells/src/model.spec.ts

@@ -16,7 +16,7 @@ import {
 
 import { OutputAreaModel } from '@jupyterlab/outputarea';
 
-import { DEFAULT_OUTPUTS } from '../../utils';
+import { DEFAULT_OUTPUTS } from '@jupyterlab/testutils';
 
 class TestModel extends CellModel {
   get type(): 'raw' {

+ 1 - 1
tests/test-cells/src/widget.spec.ts

@@ -35,7 +35,7 @@ import {
   editorFactory
 } from '../../notebook-utils';
 
-import { createClientSession } from '../../utils';
+import { createClientSession } from '@jupyterlab/testutils';
 
 const RENDERED_CLASS = 'jp-mod-rendered';
 

+ 1 - 0
tests/test-codeeditor/package.json

@@ -19,6 +19,7 @@
     "@jupyterlab/codeeditor": "^0.17.2",
     "@jupyterlab/codemirror": "^0.17.3",
     "@jupyterlab/observables": "^2.0.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",
     "expect.js": "~0.3.1",

+ 1 - 0
tests/test-codemirror/package.json

@@ -18,6 +18,7 @@
   "dependencies": {
     "@jupyterlab/codeeditor": "^0.17.2",
     "@jupyterlab/codemirror": "^0.17.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "chai": "~4.1.2",
     "simulate-event": "~1.4.0"
   },

+ 1 - 0
tests/test-completer/package.json

@@ -20,6 +20,7 @@
     "@jupyterlab/codeeditor": "^0.17.2",
     "@jupyterlab/codemirror": "^0.17.3",
     "@jupyterlab/completer": "^0.17.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",

+ 1 - 1
tests/test-completer/src/handler.spec.ts

@@ -16,7 +16,7 @@ import {
   KernelConnector
 } from '@jupyterlab/completer';
 
-import { createClientSession } from '../../utils';
+import { createClientSession } from '@jupyterlab/testutils';
 
 function createEditorWidget(): CodeEditorWrapper {
   let model = new CodeEditor.Model();

+ 1 - 0
tests/test-console/package.json

@@ -22,6 +22,7 @@
     "@jupyterlab/codemirror": "^0.17.3",
     "@jupyterlab/console": "^0.17.2",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/signaling": "^1.2.2",

+ 1 - 1
tests/test-console/src/foreign.spec.ts

@@ -19,7 +19,7 @@ import { CodeCellModel, CodeCell } from '@jupyterlab/cells';
 
 import { createCodeCellFactory } from '../../notebook-utils';
 
-import { createClientSession, defaultRenderMime } from '../../utils';
+import { createClientSession, defaultRenderMime } from '@jupyterlab/testutils';
 
 class TestParent extends Panel implements ForeignHandler.IReceiver {
   addCell(cell: CodeCell): void {

+ 1 - 1
tests/test-console/src/history.spec.ts

@@ -13,7 +13,7 @@ import { CodeMirrorEditor } from '@jupyterlab/codemirror';
 
 import { ConsoleHistory } from '@jupyterlab/console';
 
-import { createClientSession } from '../../utils';
+import { createClientSession } from '@jupyterlab/testutils';
 
 const mockHistory: KernelMessage.IHistoryReplyMsg = {
   header: null,

+ 1 - 1
tests/test-console/src/panel.spec.ts

@@ -11,7 +11,7 @@ import { Widget } from '@phosphor/widgets';
 
 import { CodeConsole, ConsolePanel } from '@jupyterlab/console';
 
-import { dismissDialog } from '../../utils';
+import { dismissDialog } from '@jupyterlab/testutils';
 
 import {
   createConsolePanelFactory,

+ 1 - 1
tests/test-console/src/utils.ts

@@ -5,7 +5,7 @@ import { editorServices } from '@jupyterlab/codemirror';
 
 import { CodeConsole, ConsolePanel } from '@jupyterlab/console';
 
-import { defaultRenderMime } from '../../utils';
+import { defaultRenderMime } from '@jupyterlab/testutils';
 
 export const editorFactory = editorServices.factoryService.newInlineEditor.bind(
   editorServices.factoryService

+ 1 - 1
tests/test-console/src/widget.spec.ts

@@ -18,7 +18,7 @@ import {
   RawCell
 } from '@jupyterlab/cells';
 
-import { createClientSession } from '../../utils';
+import { createClientSession } from '@jupyterlab/testutils';
 
 import { createCodeCellFactory } from '../../notebook-utils';
 

+ 1 - 0
tests/test-coreutils/package.json

@@ -17,6 +17,7 @@
   },
   "dependencies": {
     "@jupyterlab/coreutils": "^2.0.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/signaling": "^1.2.2",
     "chai": "~4.1.2"

+ 1 - 0
tests/test-csvviewer/package.json

@@ -19,6 +19,7 @@
     "@jupyterlab/csvviewer": "^0.17.2",
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/widgets": "^1.6.0",
     "csv-spectrum": "~1.0.0",

+ 1 - 0
tests/test-docmanager/package.json

@@ -19,6 +19,7 @@
     "@jupyterlab/docmanager": "^0.17.2",
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",

+ 1 - 1
tests/test-docmanager/src/manager.spec.ts

@@ -17,7 +17,7 @@ import {
   IDocumentWidget
 } from '@jupyterlab/docregistry';
 
-import { dismissDialog } from '../../utils';
+import { dismissDialog } from '@jupyterlab/testutils';
 
 class WidgetFactory extends ABCWidgetFactory<IDocumentWidget> {
   protected createNewWidget(

+ 1 - 1
tests/test-docmanager/src/savehandler.spec.ts

@@ -15,7 +15,7 @@ import { SaveHandler } from '@jupyterlab/docmanager';
 
 import { PromiseDelegate, UUID } from '@phosphor/coreutils';
 
-import { acceptDialog, waitForDialog } from '../../utils';
+import { acceptDialog, waitForDialog } from '@jupyterlab/testutils';
 
 describe('docregistry/savehandler', () => {
   let manager: ServiceManager.IManager;

+ 1 - 1
tests/test-docmanager/src/widgetmanager.spec.ts

@@ -22,7 +22,7 @@ import { IMessageHandler, Message, MessageLoop } from '@phosphor/messaging';
 
 import { Widget } from '@phosphor/widgets';
 
-import { acceptDialog, dismissDialog } from '../../utils';
+import { acceptDialog, dismissDialog } from '@jupyterlab/testutils';
 
 class WidgetFactory extends ABCWidgetFactory<IDocumentWidget> {
   protected createNewWidget(

+ 1 - 0
tests/test-docregistry/package.json

@@ -19,6 +19,7 @@
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/rendermime": "^0.17.3",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/disposable": "^1.1.2",

+ 1 - 1
tests/test-docregistry/src/context.spec.ts

@@ -22,7 +22,7 @@ import {
   acceptDialog,
   dismissDialog,
   createNotebookContext
-} from '../../utils';
+} from '@jupyterlab/testutils';
 
 import { DEFAULT_CONTENT } from '../../notebook-utils';
 

+ 1 - 1
tests/test-docregistry/src/default.spec.ts

@@ -20,7 +20,7 @@ import {
 
 import { ServiceManager } from '@jupyterlab/services';
 
-import { createFileContext, sleep } from '../../utils';
+import { createFileContext, sleep } from '@jupyterlab/testutils';
 
 class WidgetFactory extends ABCWidgetFactory<IDocumentWidget> {
   protected createNewWidget(

+ 1 - 1
tests/test-docregistry/src/mimedocument.spec.ts

@@ -17,7 +17,7 @@ import {
 
 import { RenderedText, IRenderMime } from '@jupyterlab/rendermime';
 
-import { createFileContext, defaultRenderMime } from '../../utils';
+import { createFileContext, defaultRenderMime } from '@jupyterlab/testutils';
 
 const RENDERMIME = defaultRenderMime();
 

+ 1 - 0
tests/test-filebrowser/package.json

@@ -21,6 +21,7 @@
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/filebrowser": "^0.17.3",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",

+ 1 - 1
tests/test-filebrowser/src/model.spec.ts

@@ -19,7 +19,7 @@ import {
   CHUNK_SIZE
 } from '@jupyterlab/filebrowser';
 
-import { acceptDialog, dismissDialog } from '../../utils';
+import { acceptDialog, dismissDialog } from '@jupyterlab/testutils';
 import { ISignal } from '@phosphor/signaling';
 import { IIterator } from '@phosphor/algorithm';
 

+ 1 - 0
tests/test-fileeditor/package.json

@@ -20,6 +20,7 @@
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/fileeditor": "^0.17.2",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",

+ 1 - 0
tests/test-imageviewer/package.json

@@ -19,6 +19,7 @@
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/imageviewer": "^0.17.2",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",

+ 1 - 1
tests/test-imageviewer/src/widget.spec.ts

@@ -20,7 +20,7 @@ import {
 
 import { ImageViewer, ImageViewerFactory } from '@jupyterlab/imageviewer';
 
-import { createFileContext } from '../../utils';
+import { createFileContext } from '@jupyterlab/testutils';
 
 class LogImage extends ImageViewer {
   methods: string[] = [];

+ 1 - 0
tests/test-inspector/package.json

@@ -17,6 +17,7 @@
   },
   "dependencies": {
     "@jupyterlab/inspector": "^0.17.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/signaling": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",
     "expect.js": "~0.3.1"

+ 1 - 0
tests/test-mainmenu/package.json

@@ -18,6 +18,7 @@
   "dependencies": {
     "@jupyterlab/apputils": "^0.17.2",
     "@jupyterlab/mainmenu": "^0.6.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/commands": "^1.5.0",
     "@phosphor/widgets": "^1.6.0",

+ 1 - 0
tests/test-notebook/package.json

@@ -23,6 +23,7 @@
     "@jupyterlab/docregistry": "^0.17.2",
     "@jupyterlab/notebook": "^0.17.2",
     "@jupyterlab/observables": "^2.0.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",

+ 1 - 1
tests/test-notebook/src/actions.spec.ts

@@ -20,7 +20,7 @@ import {
   createClientSession,
   dismissDialog,
   sleep
-} from '../../utils';
+} from '@jupyterlab/testutils';
 
 import {
   DEFAULT_CONTENT,

+ 1 - 1
tests/test-notebook/src/celltools.spec.ts

@@ -22,7 +22,7 @@ import {
 
 import { createNotebookPanel, populateNotebook } from '../../notebook-utils';
 
-import { createNotebookContext, sleep } from '../../utils';
+import { createNotebookContext, sleep } from '@jupyterlab/testutils';
 
 class LogTool extends CellTools.Tool {
   methods: string[] = [];

+ 1 - 1
tests/test-notebook/src/default-toolbar.spec.ts

@@ -21,7 +21,7 @@ import { INotebookModel } from '@jupyterlab/notebook';
 
 import { NotebookPanel } from '@jupyterlab/notebook';
 
-import { createNotebookContext, sleep } from '../../utils';
+import { createNotebookContext, sleep } from '@jupyterlab/testutils';
 
 import {
   DEFAULT_CONTENT,

+ 1 - 1
tests/test-notebook/src/model.spec.ts

@@ -15,7 +15,7 @@ import { ModelDB } from '@jupyterlab/observables';
 
 import { DEFAULT_CONTENT } from '../../notebook-utils';
 
-import { sleep } from '../../utils';
+import { sleep } from '@jupyterlab/testutils';
 
 describe('@jupyterlab/notebook', () => {
   describe('NotebookModel', () => {

+ 1 - 1
tests/test-notebook/src/panel.spec.ts

@@ -9,7 +9,7 @@ import { INotebookModel, NotebookPanel, Notebook } from '@jupyterlab/notebook';
 
 import { Toolbar } from '@jupyterlab/apputils';
 
-import { createNotebookContext } from '../../utils';
+import { createNotebookContext } from '@jupyterlab/testutils';
 
 import {
   createNotebookPanelFactory,

+ 1 - 1
tests/test-notebook/src/tracker.spec.ts

@@ -13,7 +13,7 @@ import {
   NotebookTracker
 } from '@jupyterlab/notebook';
 
-import { createNotebookContext } from '../../utils';
+import { createNotebookContext } from '@jupyterlab/testutils';
 
 import { DEFAULT_CONTENT, createNotebookPanel } from '../../notebook-utils';
 

+ 1 - 1
tests/test-notebook/src/widget.spec.ts

@@ -32,7 +32,7 @@ import {
   defaultEditorConfig
 } from '../../notebook-utils';
 
-import { sleep } from '../../utils';
+import { sleep } from '@jupyterlab/testutils';
 
 const contentFactory = createNotebookFactory();
 const options: Notebook.IOptions = {

+ 1 - 1
tests/test-notebook/src/widgetfactory.spec.ts

@@ -13,7 +13,7 @@ import { NotebookWidgetFactory } from '@jupyterlab/notebook';
 
 import { Context } from '@jupyterlab/docregistry';
 
-import { createNotebookContext } from '../../utils';
+import { createNotebookContext } from '@jupyterlab/testutils';
 
 import {
   createNotebookPanelFactory,

+ 1 - 0
tests/test-observables/package.json

@@ -17,6 +17,7 @@
   },
   "dependencies": {
     "@jupyterlab/observables": "^2.0.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "expect.js": "~0.3.1"

+ 1 - 0
tests/test-outputarea/package.json

@@ -20,6 +20,7 @@
     "@jupyterlab/outputarea": "^0.17.2",
     "@jupyterlab/rendermime": "^0.17.3",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",
     "expect.js": "~0.3.1"

+ 1 - 1
tests/test-outputarea/src/model.spec.ts

@@ -7,7 +7,7 @@ import { OutputModel } from '@jupyterlab/rendermime';
 
 import { OutputAreaModel } from '@jupyterlab/outputarea';
 
-import { DEFAULT_OUTPUTS } from '../../utils';
+import { DEFAULT_OUTPUTS } from '@jupyterlab/testutils';
 
 describe('outputarea/model', () => {
   let model: OutputAreaModel;

+ 1 - 1
tests/test-outputarea/src/widget.spec.ts

@@ -21,7 +21,7 @@ import {
   createClientSession,
   defaultRenderMime,
   DEFAULT_OUTPUTS
-} from '../../utils';
+} from '@jupyterlab/testutils';
 
 /**
  * The default rendermime instance to use for testing.

+ 1 - 0
tests/test-rendermime/package.json

@@ -21,6 +21,7 @@
     "@jupyterlab/mathjax2-extension": "^0.5.2",
     "@jupyterlab/rendermime": "^0.17.3",
     "@jupyterlab/services": "^3.0.3",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/widgets": "^1.6.0",

+ 1 - 1
tests/test-rendermime/src/outputmodel.spec.ts

@@ -7,7 +7,7 @@ import { nbformat } from '@jupyterlab/coreutils';
 
 import { OutputModel } from '@jupyterlab/rendermime';
 
-import { DEFAULT_OUTPUTS } from '../../utils';
+import { DEFAULT_OUTPUTS } from '@jupyterlab/testutils';
 
 const DEFAULT_EXECUTE: nbformat.IOutput = {
   output_type: 'execute_result',

+ 1 - 1
tests/test-rendermime/src/registry.spec.ts

@@ -22,7 +22,7 @@ import {
   RenderMimeRegistry
 } from '@jupyterlab/rendermime';
 
-import { defaultRenderMime, createFileContext } from '../../utils';
+import { defaultRenderMime, createFileContext } from '@jupyterlab/testutils';
 
 const RESOLVER: IRenderMime.IResolver = createFileContext().urlResolver;
 

+ 1 - 0
tests/test-terminal/package.json

@@ -18,6 +18,7 @@
   "dependencies": {
     "@jupyterlab/services": "^3.0.3",
     "@jupyterlab/terminal": "^0.17.2",
+    "@jupyterlab/testutils": "^0.1.0",
     "@phosphor/messaging": "^1.2.2",
     "@phosphor/widgets": "^1.6.0",
     "expect.js": "~0.3.1"