Browse Source

Modernize application tests

Steven Silvester 5 years ago
parent
commit
237d61eecb

+ 0 - 1
dev_mode/package.json

@@ -364,7 +364,6 @@
       "@jupyterlab/template": "../buildutils/template",
       "template-for-tests": "../buildutils/test-template",
       "@jupyterlab/test-root": "../tests",
-      "@jupyterlab/test-application": "../tests/test-application",
       "@jupyterlab/test-apputils": "../tests/test-apputils",
       "@jupyterlab/test-cells": "../tests/test-cells",
       "@jupyterlab/test-codeeditor": "../tests/test-codeeditor",

+ 11 - 0
packages/application/.vscode/launch.json

@@ -0,0 +1,11 @@
+{
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "type": "node",
+            "request": "attach",
+            "name": "Attach",
+            "port": 9229
+        }
+    ]
+}

+ 0 - 0
tests/test-application/babel.config.js → packages/application/babel.config.js


+ 2 - 0
packages/application/jest.config.js

@@ -0,0 +1,2 @@
+const func = require('@jupyterlab/testutils/lib/jest-config-new');
+module.exports = func(__dirname);

+ 9 - 0
packages/application/package.json

@@ -29,9 +29,14 @@
   },
   "scripts": {
     "build": "tsc -b",
+    "build:test": "tsc --build tsconfig.test.json",
     "clean": "rimraf lib",
     "docs": "typedoc src",
     "prepublishOnly": "npm run build",
+    "test": "jest",
+    "test:cov": "jest --collect-coverage",
+    "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
+    "test:debug:watch": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
     "watch": "tsc -b --watch"
   },
   "dependencies": {
@@ -56,7 +61,11 @@
     "@lumino/widgets": "^1.11.1"
   },
   "devDependencies": {
+    "@jupyterlab/testutils": "^2.1.0",
+    "@types/jest": "^24.0.23",
+    "jest": "^25.2.3",
     "rimraf": "~3.0.0",
+    "ts-jest": "^25.2.1",
     "typedoc": "^0.15.4",
     "typescript": "~3.7.3"
   },

+ 10 - 11
tests/test-application/src/layoutrestorer.spec.ts → packages/application/test/layoutrestorer.spec.ts

@@ -1,7 +1,6 @@
 // Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
 
-import { expect } from 'chai';
+import 'jest';
 
 import { ILabShell, LayoutRestorer } from '@jupyterlab/application';
 
@@ -24,7 +23,7 @@ describe('apputils', () => {
           first: Promise.resolve<void>(void 0),
           registry: new CommandRegistry()
         });
-        expect(restorer).to.be.an.instanceof(LayoutRestorer);
+        expect(restorer).toBeInstanceOf(LayoutRestorer);
       });
     });
 
@@ -35,7 +34,7 @@ describe('apputils', () => {
           first: Promise.resolve<void>(void 0),
           registry: new CommandRegistry()
         });
-        expect(restorer.restored).to.be.an.instanceof(Promise);
+        expect(restorer.restored).toBeInstanceOf(Promise);
       });
 
       it('should resolve when restorer is done', async () => {
@@ -71,8 +70,8 @@ describe('apputils', () => {
         await restorer.restored;
         await restorer.save(dehydrated);
         const layout = await restorer.fetch();
-        expect(layout.mainArea?.currentWidget).to.equal(currentWidget);
-        expect(layout.mainArea?.mode).to.equal(mode);
+        expect(layout.mainArea?.currentWidget).toBe(currentWidget);
+        expect(layout.mainArea?.mode).toBe(mode);
       });
     });
 
@@ -84,7 +83,7 @@ describe('apputils', () => {
           registry: new CommandRegistry()
         });
         const layout = await restorer.fetch();
-        expect(layout).to.not.equal(null);
+        expect(layout).not.toBe(null);
       });
 
       it('should fetch saved data', async () => {
@@ -111,7 +110,7 @@ describe('apputils', () => {
         await restorer.restored;
         await restorer.save(dehydrated);
         const layout = await restorer.fetch();
-        expect(layout).to.deep.equal(dehydrated);
+        expect(layout).toEqual(dehydrated);
       });
     });
 
@@ -141,7 +140,7 @@ describe('apputils', () => {
           command: tracker.namespace
         });
         await restorer.restored;
-        expect(called).to.equal(true);
+        expect(called).toBe(true);
       });
     });
 
@@ -162,7 +161,7 @@ describe('apputils', () => {
         try {
           await restorer.save(dehydrated);
         } catch (e) {
-          expect(e).to.equal('save() was called prematurely.');
+          expect(e).toBe('save() was called prematurely.');
         }
       });
 
@@ -190,7 +189,7 @@ describe('apputils', () => {
         await restorer.restored;
         await restorer.save(dehydrated);
         const layout = await restorer.fetch();
-        expect(layout).to.deep.equal(dehydrated);
+        expect(layout).toEqual(dehydrated);
       });
     });
   });

+ 14 - 15
tests/test-application/src/router.spec.ts → packages/application/test/router.spec.ts

@@ -1,7 +1,6 @@
 // Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
 
-import { expect } from 'chai';
+import 'jest';
 
 import { Router } from '@jupyterlab/application';
 
@@ -25,19 +24,19 @@ describe('apputils', () => {
 
     describe('#constructor()', () => {
       it('should construct a new router', () => {
-        expect(router).to.be.an.instanceof(Router);
+        expect(router).toBeInstanceOf(Router);
       });
     });
 
     describe('#base', () => {
       it('should be the base URL of the application', () => {
-        expect(router.base).to.equal(base);
+        expect(router.base).toBe(base);
       });
     });
 
     describe('#commands', () => {
       it('should be the command registry used by the router', () => {
-        expect(router.commands).to.equal(commands);
+        expect(router.commands).toBe(commands);
       });
     });
 
@@ -48,7 +47,7 @@ describe('apputils', () => {
         const search = '';
         const hash = '';
 
-        expect(router.current).to.deep.equal({ hash, path, request, search });
+        expect(router.current).toEqual({ hash, path, request, search });
       });
     });
 
@@ -65,17 +64,17 @@ describe('apputils', () => {
 
         let called = false;
         router.routed.connect(() => {
-          expect(routed).to.equal(true);
+          expect(routed).toBe(true);
           called = true;
         });
         await router.route();
-        expect(called).to.equal(true);
+        expect(called).toBe(true);
       });
     });
 
     describe('#stop', () => {
       it('should be a unique token', () => {
-        expect(router.stop).to.be.an.instanceof(Token);
+        expect(router.stop).toBeInstanceOf(Token);
       });
 
       it('should stop routing if returned by a routed command', async () => {
@@ -107,7 +106,7 @@ describe('apputils', () => {
         const promise = signalToPromise(router.routed);
         await router.route();
         await promise;
-        expect(recorded).to.deep.equal(wanted);
+        expect(recorded).toEqual(wanted);
       });
     });
 
@@ -132,11 +131,11 @@ describe('apputils', () => {
 
         let called = false;
         router.routed.connect(() => {
-          expect(recorded).to.deep.equal(wanted);
+          expect(recorded).toEqual(wanted);
           called = true;
         });
         await router.route();
-        expect(called).to.equal(true);
+        expect(called).toBe(true);
       });
     });
 
@@ -151,19 +150,19 @@ describe('apputils', () => {
           }
         });
         router.register({ command: 'a', pattern: /#a/, rank: 10 });
-        expect(recorded.length).to.equal(0);
+        expect(recorded.length).toBe(0);
 
         // Change the hash because changing location is a security error.
         window.location.hash = 'a';
 
         let called = false;
         router.routed.connect(() => {
-          expect(recorded).to.deep.equal(wanted);
+          expect(recorded).toEqual(wanted);
           window.location.hash = '';
           called = true;
         });
         await router.route();
-        expect(called).to.equal(true);
+        expect(called).toBe(true);
       });
     });
   });

+ 60 - 61
tests/test-application/src/shell.spec.ts → packages/application/test/shell.spec.ts

@@ -1,7 +1,6 @@
 // Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
 
-import { expect } from 'chai';
+import 'jest';
 
 import { framePromise } from '@jupyterlab/testutils';
 
@@ -43,7 +42,7 @@ describe('LabShell', () => {
 
   describe('#constructor()', () => {
     it('should create a LabShell instance', () => {
-      expect(shell).to.be.an.instanceof(LabShell);
+      expect(shell).toBeInstanceOf(LabShell);
     });
   });
 
@@ -52,9 +51,9 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'left');
-      expect(shell.leftCollapsed).to.equal(true);
+      expect(shell.leftCollapsed).toBe(true);
       shell.activateById('foo');
-      expect(shell.leftCollapsed).to.equal(false);
+      expect(shell.leftCollapsed).toBe(false);
     });
   });
 
@@ -63,58 +62,58 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'right');
-      expect(shell.rightCollapsed).to.equal(true);
+      expect(shell.rightCollapsed).toBe(true);
       shell.activateById('foo');
-      expect(shell.rightCollapsed).to.equal(false);
+      expect(shell.rightCollapsed).toBe(false);
     });
   });
 
   describe('#currentWidget', () => {
     it('should be the current widget in the shell main area', () => {
-      expect(shell.currentWidget).to.equal(null);
+      expect(shell.currentWidget).toBe(null);
       const widget = new Widget();
       widget.node.tabIndex = -1;
       widget.id = 'foo';
       shell.add(widget, 'main');
-      expect(shell.currentWidget).to.equal(null);
+      expect(shell.currentWidget).toBe(null);
       simulate(widget.node, 'focus');
-      expect(shell.currentWidget).to.equal(widget);
+      expect(shell.currentWidget).toBe(widget);
       widget.parent = null;
-      expect(shell.currentWidget).to.equal(null);
+      expect(shell.currentWidget).toBe(null);
     });
   });
 
   describe('#isEmpty()', () => {
     it('should test whether the main area is empty', () => {
-      expect(shell.isEmpty('top')).to.equal(true);
+      expect(shell.isEmpty('top')).toBe(true);
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'main');
-      expect(shell.isEmpty('main')).to.equal(false);
+      expect(shell.isEmpty('main')).toBe(false);
     });
 
     it('should test whether the top area is empty', () => {
-      expect(shell.isEmpty('top')).to.equal(true);
+      expect(shell.isEmpty('top')).toBe(true);
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'top');
-      expect(shell.isEmpty('top')).to.equal(false);
+      expect(shell.isEmpty('top')).toBe(false);
     });
 
     it('should test whether the left area is empty', () => {
-      expect(shell.isEmpty('left')).to.equal(true);
+      expect(shell.isEmpty('left')).toBe(true);
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'left');
-      expect(shell.isEmpty('left')).to.equal(false);
+      expect(shell.isEmpty('left')).toBe(false);
     });
 
     it('should test whether the right area is empty', () => {
-      expect(shell.isEmpty('right')).to.equal(true);
+      expect(shell.isEmpty('right')).toBe(true);
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'right');
-      expect(shell.isEmpty('right')).to.equal(false);
+      expect(shell.isEmpty('right')).toBe(false);
     });
   });
 
@@ -131,20 +130,20 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'header');
-      expect(shell.isEmpty('header')).to.equal(false);
+      expect(shell.isEmpty('header')).toBe(false);
     });
 
     it('should be a no-op if the widget has no id', () => {
       const widget = new Widget();
       shell.add(widget, 'header');
-      expect(shell.isEmpty('header')).to.equal(true);
+      expect(shell.isEmpty('header')).toBe(true);
     });
 
     it('should accept options', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'header', { rank: 10 });
-      expect(shell.isEmpty('header')).to.equal(false);
+      expect(shell.isEmpty('header')).toBe(false);
     });
   });
 
@@ -153,20 +152,20 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'top');
-      expect(shell.isEmpty('top')).to.equal(false);
+      expect(shell.isEmpty('top')).toBe(false);
     });
 
     it('should be a no-op if the widget has no id', () => {
       const widget = new Widget();
       shell.add(widget, 'top');
-      expect(shell.isEmpty('top')).to.equal(true);
+      expect(shell.isEmpty('top')).toBe(true);
     });
 
     it('should accept options', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'top', { rank: 10 });
-      expect(shell.isEmpty('top')).to.equal(false);
+      expect(shell.isEmpty('top')).toBe(false);
     });
 
     it('should add widgets according to their ranks', () => {
@@ -176,7 +175,7 @@ describe('LabShell', () => {
       bar.id = 'bar';
       shell.add(foo, 'top', { rank: 20 });
       shell.add(bar, 'top', { rank: 10 });
-      expect(toArray(shell.widgets('top'))).to.deep.equal([bar, foo]);
+      expect(toArray(shell.widgets('top'))).toEqual([bar, foo]);
     });
   });
 
@@ -185,20 +184,20 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'left');
-      expect(shell.isEmpty('left')).to.equal(false);
+      expect(shell.isEmpty('left')).toBe(false);
     });
 
     it('should be a no-op if the widget has no id', () => {
       const widget = new Widget();
       shell.add(widget, 'left');
-      expect(shell.isEmpty('left')).to.equal(true);
+      expect(shell.isEmpty('left')).toBe(true);
     });
 
     it('should accept options', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'left', { rank: 10 });
-      expect(shell.isEmpty('left')).to.equal(false);
+      expect(shell.isEmpty('left')).toBe(false);
     });
   });
 
@@ -207,20 +206,20 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'right');
-      expect(shell.isEmpty('right')).to.equal(false);
+      expect(shell.isEmpty('right')).toBe(false);
     });
 
     it('should be a no-op if the widget has no id', () => {
       const widget = new Widget();
       shell.add(widget, 'right');
-      expect(shell.isEmpty('right')).to.equal(true);
+      expect(shell.isEmpty('right')).toBe(true);
     });
 
     it('should accept options', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'right', { rank: 10 });
-      expect(shell.isEmpty('right')).to.equal(false);
+      expect(shell.isEmpty('right')).toBe(false);
     });
   });
 
@@ -229,13 +228,13 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'main');
-      expect(shell.isEmpty('main')).to.equal(false);
+      expect(shell.isEmpty('main')).toBe(false);
     });
 
     it('should be a no-op if the widget has no id', () => {
       const widget = new Widget();
       shell.add(widget, 'main');
-      expect(shell.isEmpty('main')).to.equal(true);
+      expect(shell.isEmpty('main')).toBe(true);
     });
   });
 
@@ -244,34 +243,34 @@ describe('LabShell', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'left');
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
       shell.activateById('foo');
-      expect(widget.isVisible).to.equal(true);
+      expect(widget.isVisible).toBe(true);
     });
 
     it('should be a no-op if the widget is not in the left area', () => {
       const widget = new Widget();
       widget.id = 'foo';
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
       shell.activateById('foo');
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
     });
 
     it('should activate a widget in the right area', () => {
       const widget = new Widget();
       widget.id = 'foo';
       shell.add(widget, 'right');
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
       shell.activateById('foo');
-      expect(widget.isVisible).to.equal(true);
+      expect(widget.isVisible).toBe(true);
     });
 
     it('should be a no-op if the widget is not in the right area', () => {
       const widget = new Widget();
       widget.id = 'foo';
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
       shell.activateById('foo');
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
     });
 
     it('should activate a widget in the main area', async () => {
@@ -280,7 +279,7 @@ describe('LabShell', () => {
       shell.add(widget, 'main');
       shell.activateById('foo');
       await framePromise();
-      expect(widget.activated).to.equal(true);
+      expect(widget.activated).toBe(true);
     });
 
     it('should be a no-op if the widget is not in the main area', async () => {
@@ -288,7 +287,7 @@ describe('LabShell', () => {
       widget.id = 'foo';
       shell.activateById('foo');
       await framePromise();
-      expect(widget.activated).to.equal(false);
+      expect(widget.activated).toBe(false);
     });
   });
 
@@ -298,9 +297,9 @@ describe('LabShell', () => {
       widget.id = 'foo';
       shell.add(widget, 'left');
       shell.activateById('foo');
-      expect(widget.isVisible).to.equal(true);
+      expect(widget.isVisible).toBe(true);
       shell.collapseLeft();
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
     });
   });
 
@@ -310,9 +309,9 @@ describe('LabShell', () => {
       widget.id = 'foo';
       shell.add(widget, 'right');
       shell.activateById('foo');
-      expect(widget.isVisible).to.equal(true);
+      expect(widget.isVisible).toBe(true);
       shell.collapseRight();
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
     });
   });
 
@@ -326,9 +325,9 @@ describe('LabShell', () => {
       shell.add(widget2, 'left', { rank: 1 });
       shell.activateById('foo');
       shell.collapseLeft();
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
       shell.expandLeft();
-      expect(widget.isVisible).to.equal(true);
+      expect(widget.isVisible).toBe(true);
     });
 
     it('should expand the first widget if none have been activated', () => {
@@ -338,9 +337,9 @@ describe('LabShell', () => {
       widget2.id = 'bar';
       shell.add(widget, 'left', { rank: 10 });
       shell.add(widget2, 'left', { rank: 1 });
-      expect(widget2.isVisible).to.equal(false);
+      expect(widget2.isVisible).toBe(false);
       shell.expandLeft();
-      expect(widget2.isVisible).to.equal(true);
+      expect(widget2.isVisible).toBe(true);
     });
   });
 
@@ -354,9 +353,9 @@ describe('LabShell', () => {
       shell.add(widget2, 'right', { rank: 1 });
       shell.activateById('foo');
       shell.collapseRight();
-      expect(widget.isVisible).to.equal(false);
+      expect(widget.isVisible).toBe(false);
       shell.expandRight();
-      expect(widget.isVisible).to.equal(true);
+      expect(widget.isVisible).toBe(true);
     });
 
     it('should expand the first widget if none have been activated', () => {
@@ -366,9 +365,9 @@ describe('LabShell', () => {
       widget2.id = 'bar';
       shell.add(widget, 'right', { rank: 10 });
       shell.add(widget2, 'right', { rank: 1 });
-      expect(widget2.isVisible).to.equal(false);
+      expect(widget2.isVisible).toBe(false);
       shell.expandRight();
-      expect(widget2.isVisible).to.equal(true);
+      expect(widget2.isVisible).toBe(true);
     });
   });
 
@@ -381,8 +380,8 @@ describe('LabShell', () => {
       bar.id = 'bar';
       shell.add(bar, 'main');
       shell.closeAll();
-      expect(foo.parent).to.equal(null);
-      expect(bar.parent).to.equal(null);
+      expect(foo.parent).toBe(null);
+      expect(bar.parent).toBe(null);
     });
   });
 
@@ -393,8 +392,8 @@ describe('LabShell', () => {
       shell.add(foo, 'main');
       const state = shell.saveLayout();
       shell.activateById('foo');
-      expect(state.mainArea?.mode).to.equal('multiple-document');
-      expect(state.mainArea?.currentWidget).to.equal(null);
+      expect(state.mainArea?.mode).toBe('multiple-document');
+      expect(state.mainArea?.currentWidget).toBe(null);
     });
   });
 
@@ -403,7 +402,7 @@ describe('LabShell', () => {
       const state = shell.saveLayout();
       shell.mode = 'single-document';
       shell.restoreLayout(state);
-      expect(state.mainArea?.mode).to.equal('multiple-document');
+      expect(state.mainArea?.mode).toBe('multiple-document');
     });
   });
 });

+ 57 - 0
packages/application/tsconfig.test.json

@@ -0,0 +1,57 @@
+{
+  "extends": "../../tsconfigbase.test",
+  "include": ["src/*", "test/*"],
+  "references": [
+    {
+      "path": "../apputils"
+    },
+    {
+      "path": "../coreutils"
+    },
+    {
+      "path": "../docregistry"
+    },
+    {
+      "path": "../rendermime"
+    },
+    {
+      "path": "../rendermime-interfaces"
+    },
+    {
+      "path": "../services"
+    },
+    {
+      "path": "../statedb"
+    },
+    {
+      "path": "../ui-components"
+    },
+    {
+      "path": "../../testutils"
+    },
+    {
+      "path": "../apputils"
+    },
+    {
+      "path": "../coreutils"
+    },
+    {
+      "path": "../docregistry"
+    },
+    {
+      "path": "../rendermime"
+    },
+    {
+      "path": "../rendermime-interfaces"
+    },
+    {
+      "path": "../services"
+    },
+    {
+      "path": "../statedb"
+    },
+    {
+      "path": "../ui-components"
+    }
+  ]
+}

+ 0 - 2
tests/test-application/jest.config.js

@@ -1,2 +0,0 @@
-const func = require('@jupyterlab/testutils/lib/jest-config');
-module.exports = func('application', __dirname);

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

@@ -1,36 +0,0 @@
-{
-  "name": "@jupyterlab/test-application",
-  "version": "2.1.0",
-  "private": true,
-  "scripts": {
-    "build": "tsc -b",
-    "clean": "rimraf build && rimraf coverage",
-    "coverage": "python run.py --coverage",
-    "test": "python run.py",
-    "watch": "python run.py --debug",
-    "watch:all": "python run.py --debug --watchAll",
-    "watch:src": "tsc -b --watch"
-  },
-  "dependencies": {
-    "@jupyterlab/application": "^2.1.0",
-    "@jupyterlab/apputils": "^2.1.0",
-    "@jupyterlab/statedb": "^2.1.0",
-    "@jupyterlab/testutils": "^2.1.0",
-    "@lumino/algorithm": "^1.2.3",
-    "@lumino/commands": "^1.10.1",
-    "@lumino/coreutils": "^1.4.2",
-    "@lumino/messaging": "^1.3.3",
-    "@lumino/widgets": "^1.11.1",
-    "chai": "^4.2.0",
-    "jest": "^25.2.3",
-    "jest-junit": "^10.0.0",
-    "simulate-event": "~1.4.0",
-    "ts-jest": "^25.2.1"
-  },
-  "devDependencies": {
-    "@types/chai": "^4.2.7",
-    "@types/jest": "^24.0.23",
-    "rimraf": "~3.0.0",
-    "typescript": "~3.7.3"
-  }
-}

+ 0 - 8
tests/test-application/run.py

@@ -1,8 +0,0 @@
-# Copyright (c) Jupyter Development Team.
-# Distributed under the terms of the Modified BSD License.
-
-import os.path as osp
-from jupyterlab.tests.test_app import run_jest
-
-if __name__ == '__main__':
-    run_jest(osp.dirname(osp.realpath(__file__)))

+ 0 - 24
tests/test-application/tsconfig.json

@@ -1,24 +0,0 @@
-{
-  "extends": "../../tsconfigbase",
-  "compilerOptions": {
-    "composite": false,
-    "outDir": "build",
-    "types": ["jest"],
-    "rootDir": "src"
-  },
-  "include": ["src/*"],
-  "references": [
-    {
-      "path": "../../packages/application"
-    },
-    {
-      "path": "../../packages/apputils"
-    },
-    {
-      "path": "../../packages/statedb"
-    },
-    {
-      "path": "../../testutils"
-    }
-  ]
-}