@jupyterlab/testutils 4.0.0-alpha.19 → 4.0.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/testutils",
3
- "version": "4.0.0-alpha.19",
3
+ "version": "4.0.0-alpha.20",
4
4
  "description": "JupyterLab - Test Utilities",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -22,7 +22,8 @@
22
22
  "lib/*.js.map",
23
23
  "lib/*.js",
24
24
  "default*.json",
25
- "tsconfigtestbase.json"
25
+ "tsconfigtestbase.json",
26
+ "src/**/*.{ts,tsx}"
26
27
  ],
27
28
  "scripts": {
28
29
  "build": "tsc -b",
@@ -30,15 +31,15 @@
30
31
  "watch": "tsc -b --watch"
31
32
  },
32
33
  "dependencies": {
33
- "@jupyterlab/application": "^4.0.0-alpha.19",
34
- "@jupyterlab/apputils": "^4.0.0-alpha.19",
35
- "@jupyterlab/notebook": "^4.0.0-alpha.19",
36
- "@jupyterlab/rendermime": "^4.0.0-alpha.19",
37
- "@jupyterlab/testing": "^4.0.0-alpha.19"
34
+ "@jupyterlab/application": "^4.0.0-alpha.20",
35
+ "@jupyterlab/apputils": "^4.0.0-alpha.20",
36
+ "@jupyterlab/notebook": "^4.0.0-alpha.20",
37
+ "@jupyterlab/rendermime": "^4.0.0-alpha.20",
38
+ "@jupyterlab/testing": "^4.0.0-alpha.20"
38
39
  },
39
40
  "devDependencies": {
40
41
  "rimraf": "~3.0.0",
41
- "typescript": "~4.7.3"
42
+ "typescript": "~5.0.0-beta"
42
43
  },
43
44
  "publishConfig": {
44
45
  "access": "public"
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) Jupyter Development Team.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+
6
+ import * as config from '@jupyterlab/testing/lib/babel-config';
7
+
8
+ module.exports = config;
package/src/index.ts ADDED
@@ -0,0 +1,31 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ export { createSessionContext } from '@jupyterlab/apputils/lib/testutils';
5
+ export {
6
+ createFileContext,
7
+ createFileContextWithKernel,
8
+ createSession,
9
+ DocumentWidgetOpenerMock
10
+ } from '@jupyterlab/docregistry/lib/testutils';
11
+ export {
12
+ initNotebookContext,
13
+ NBTestUtils
14
+ } from '@jupyterlab/notebook/lib/testutils';
15
+ export { defaultRenderMime } from '@jupyterlab/rendermime/lib/testutils';
16
+ export * as Mock from './mock';
17
+ export { FakeUserManager } from '@jupyterlab/services/lib/testutils';
18
+ export {
19
+ acceptDialog,
20
+ dangerDialog,
21
+ dismissDialog,
22
+ expectFailure,
23
+ framePromise,
24
+ isFulfilled,
25
+ JupyterServer,
26
+ signalToPromise,
27
+ signalToPromises,
28
+ sleep,
29
+ testEmission,
30
+ waitForDialog
31
+ } from '@jupyterlab/testing';
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) Jupyter Development Team.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+
6
+ import func from '@jupyterlab/testing/lib/jest-config';
7
+
8
+ module.exports = func;
package/src/mock.ts ADDED
@@ -0,0 +1,20 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ export {
5
+ createFileContext,
6
+ createSimpleSessionContext,
7
+ DocumentWidgetOpenerMock,
8
+ emitIopubMessage,
9
+ SessionContextMock,
10
+ updateKernelStatus
11
+ } from '@jupyterlab/docregistry/lib/testutils';
12
+ export {
13
+ cloneKernel,
14
+ ContentsManagerMock,
15
+ DEFAULT_NAME,
16
+ KERNELSPECS,
17
+ KERNEL_MODELS,
18
+ NOTEBOOK_PATHS,
19
+ SessionConnectionMock
20
+ } from '@jupyterlab/services/lib/testutils';