@theia/test 1.77.0-next.99 → 1.77.0
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/lib/browser/constants.js +1 -2
- package/lib/browser/constants.js.map +1 -1
- package/lib/browser/test-execution-progress-service.d.ts +4 -4
- package/lib/browser/test-execution-progress-service.d.ts.map +1 -1
- package/lib/browser/test-execution-progress-service.js +18 -25
- package/lib/browser/test-execution-progress-service.js.map +1 -1
- package/lib/browser/test-service.d.ts +1 -1
- package/lib/browser/test-service.d.ts.map +1 -1
- package/lib/browser/test-service.js +51 -59
- package/lib/browser/test-service.js.map +1 -1
- package/lib/browser/view/test-context-key-service.js +10 -17
- package/lib/browser/view/test-context-key-service.js.map +1 -1
- package/lib/browser/view/test-execution-state-manager.d.ts +1 -1
- package/lib/browser/view/test-execution-state-manager.d.ts.map +1 -1
- package/lib/browser/view/test-execution-state-manager.js +34 -41
- package/lib/browser/view/test-execution-state-manager.js.map +1 -1
- package/lib/browser/view/test-output-ui-model.d.ts +2 -2
- package/lib/browser/view/test-output-ui-model.d.ts.map +1 -1
- package/lib/browser/view/test-output-ui-model.js +19 -27
- package/lib/browser/view/test-output-ui-model.js.map +1 -1
- package/lib/browser/view/test-output-view-contribution.d.ts +1 -1
- package/lib/browser/view/test-output-view-contribution.d.ts.map +1 -1
- package/lib/browser/view/test-output-view-contribution.js +11 -15
- package/lib/browser/view/test-output-view-contribution.js.map +1 -1
- package/lib/browser/view/test-output-widget.d.ts +2 -2
- package/lib/browser/view/test-output-widget.d.ts.map +1 -1
- package/lib/browser/view/test-output-widget.js +31 -40
- package/lib/browser/view/test-output-widget.js.map +1 -1
- package/lib/browser/view/test-result-view-contribution.d.ts +1 -1
- package/lib/browser/view/test-result-view-contribution.d.ts.map +1 -1
- package/lib/browser/view/test-result-view-contribution.js +11 -15
- package/lib/browser/view/test-result-view-contribution.js.map +1 -1
- package/lib/browser/view/test-result-widget.d.ts +2 -2
- package/lib/browser/view/test-result-widget.d.ts.map +1 -1
- package/lib/browser/view/test-result-widget.js +42 -55
- package/lib/browser/view/test-result-widget.js.map +1 -1
- package/lib/browser/view/test-run-view-contribution.d.ts +3 -3
- package/lib/browser/view/test-run-view-contribution.d.ts.map +1 -1
- package/lib/browser/view/test-run-view-contribution.js +39 -46
- package/lib/browser/view/test-run-view-contribution.js.map +1 -1
- package/lib/browser/view/test-run-widget.d.ts +3 -3
- package/lib/browser/view/test-run-widget.d.ts.map +1 -1
- package/lib/browser/view/test-run-widget.js +65 -81
- package/lib/browser/view/test-run-widget.js.map +1 -1
- package/lib/browser/view/test-tree-widget.d.ts +4 -4
- package/lib/browser/view/test-tree-widget.d.ts.map +1 -1
- package/lib/browser/view/test-tree-widget.js +85 -105
- package/lib/browser/view/test-tree-widget.js.map +1 -1
- package/lib/browser/view/test-view-contribution.d.ts +2 -2
- package/lib/browser/view/test-view-contribution.d.ts.map +1 -1
- package/lib/browser/view/test-view-contribution.js +88 -96
- package/lib/browser/view/test-view-contribution.js.map +1 -1
- package/lib/browser/view/test-view-frontend-module.js +69 -73
- package/lib/browser/view/test-view-frontend-module.js.map +1 -1
- package/lib/common/collections.d.ts +1 -1
- package/lib/common/collections.d.ts.map +1 -1
- package/lib/common/collections.js +7 -15
- package/lib/common/collections.js.map +1 -1
- package/lib/common/test-preferences.js +20 -25
- package/lib/common/test-preferences.js.map +1 -1
- package/lib/common/tree-delta.js +9 -15
- package/lib/common/tree-delta.js.map +1 -1
- package/lib/common/tree-delta.spec.js +21 -24
- package/lib/common/tree-delta.spec.js.map +1 -1
- package/lib/node/test-backend-module.js +4 -6
- package/lib/node/test-backend-module.js.map +1 -1
- package/package.json +17 -8
- package/src/browser/test-execution-progress-service.ts +4 -4
- package/src/browser/test-service.ts +2 -2
- package/src/browser/view/test-execution-state-manager.ts +1 -1
- package/src/browser/view/test-output-ui-model.ts +2 -2
- package/src/browser/view/test-output-view-contribution.ts +1 -1
- package/src/browser/view/test-output-widget.ts +5 -4
- package/src/browser/view/test-result-view-contribution.ts +1 -1
- package/src/browser/view/test-result-widget.ts +2 -2
- package/src/browser/view/test-run-view-contribution.ts +4 -4
- package/src/browser/view/test-run-widget.tsx +3 -3
- package/src/browser/view/test-tree-widget.tsx +5 -5
- package/src/browser/view/test-view-contribution.ts +3 -3
- package/src/browser/view/test-view-frontend-module.ts +14 -14
- package/src/common/collections.ts +1 -1
- package/src/common/tree-delta.spec.ts +1 -1
- package/src/common/tree-delta.ts +1 -1
- package/src/node/test-backend-module.ts +1 -1
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
//
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
|
-
|
|
16
|
+
// A CommonJS module whose exports cannot be detected statically, so it is imported as a whole.
|
|
17
|
+
import xterm, { type Terminal } from 'xterm';
|
|
17
18
|
import { FitAddon } from 'xterm-addon-fit';
|
|
18
19
|
|
|
19
20
|
import { BaseWidget, Message, Widget, codicon, isFirefox } from '@theia/core/lib/browser';
|
|
@@ -21,8 +22,8 @@ import { inject, injectable, postConstruct } from '@theia/core/shared/inversify'
|
|
|
21
22
|
import { Disposable, DisposableCollection } from '@theia/core';
|
|
22
23
|
import { TerminalPreferences } from '@theia/terminal/lib/common/terminal-preferences';
|
|
23
24
|
import { TerminalThemeService } from '@theia/terminal/lib/browser/terminal-theme-service';
|
|
24
|
-
import { TestOutputSource, TestOutputUIModel } from './test-output-ui-model';
|
|
25
|
-
import debounce
|
|
25
|
+
import { TestOutputSource, TestOutputUIModel } from './test-output-ui-model.js';
|
|
26
|
+
import debounce from 'p-debounce';
|
|
26
27
|
|
|
27
28
|
@injectable()
|
|
28
29
|
export class TestOutputWidget extends BaseWidget {
|
|
@@ -48,7 +49,7 @@ export class TestOutputWidget extends BaseWidget {
|
|
|
48
49
|
|
|
49
50
|
@postConstruct()
|
|
50
51
|
init(): void {
|
|
51
|
-
this.term = new Terminal({
|
|
52
|
+
this.term = new xterm.Terminal({
|
|
52
53
|
disableStdin: true,
|
|
53
54
|
cursorStyle: 'bar',
|
|
54
55
|
fontFamily: this.preferences['terminal.integrated.fontFamily'],
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { AbstractViewContribution } from '@theia/core/lib/browser';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { TestResultWidget } from './test-result-widget';
|
|
19
|
+
import { TestResultWidget } from './test-result-widget.js';
|
|
20
20
|
import { nls } from '@theia/core';
|
|
21
21
|
|
|
22
22
|
@injectable()
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { BaseWidget, LabelProvider, Message, OpenerService, codicon } from '@theia/core/lib/browser';
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
19
|
-
import { TestOutputUIModel } from './test-output-ui-model';
|
|
19
|
+
import { TestOutputUIModel } from './test-output-ui-model.js';
|
|
20
20
|
import { Disposable, DisposableCollection, nls } from '@theia/core';
|
|
21
|
-
import { TestFailure, TestMessage, TestMessageStackFrame } from '../test-service';
|
|
21
|
+
import { TestFailure, TestMessage, TestMessageStackFrame } from '../test-service.js';
|
|
22
22
|
import { MarkdownRenderer } from '@theia/core/lib/browser/markdown-rendering/markdown-renderer';
|
|
23
23
|
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
24
24
|
import { URI } from '@theia/core/lib/common/uri';
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
import { AbstractViewContribution, Widget, codicon } from '@theia/core/lib/browser';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { TestRun, TestService } from '../test-service';
|
|
19
|
+
import { TestRun, TestService } from '../test-service.js';
|
|
20
20
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
21
|
-
import { TestRunTreeWidget } from './test-run-widget';
|
|
22
|
-
import { TestOutputViewContribution } from './test-output-view-contribution';
|
|
23
|
-
import { TEST_VIEW_CONTAINER_ID, TestViewCommands } from './test-view-contribution';
|
|
21
|
+
import { TestRunTreeWidget } from './test-run-widget.js';
|
|
22
|
+
import { TestOutputViewContribution } from './test-output-view-contribution.js';
|
|
23
|
+
import { TEST_VIEW_CONTAINER_ID, TestViewCommands } from './test-view-contribution.js';
|
|
24
24
|
import { Command, CommandRegistry, MenuModelRegistry, nls } from '@theia/core';
|
|
25
25
|
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
26
26
|
|
|
@@ -20,11 +20,11 @@ import { ContextMenuRenderer, codicon } from '@theia/core/lib/browser';
|
|
|
20
20
|
import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
|
|
21
21
|
import { ThemeService } from '@theia/core/lib/browser/theming';
|
|
22
22
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
23
|
-
import { TestController, TestExecutionState, TestFailure, TestItem, TestMessage, TestOutputItem, TestRun, TestService } from '../test-service';
|
|
23
|
+
import { TestController, TestExecutionState, TestFailure, TestItem, TestMessage, TestOutputItem, TestRun, TestService } from '../test-service.js';
|
|
24
24
|
import * as React from '@theia/core/shared/react';
|
|
25
25
|
import { Disposable, DisposableCollection, Event, nls } from '@theia/core';
|
|
26
|
-
import { TestExecutionStateManager } from './test-execution-state-manager';
|
|
27
|
-
import { TestOutputUIModel } from './test-output-ui-model';
|
|
26
|
+
import { TestExecutionStateManager } from './test-execution-state-manager.js';
|
|
27
|
+
import { TestOutputUIModel } from './test-output-ui-model.js';
|
|
28
28
|
|
|
29
29
|
class TestRunNode implements TreeNode, SelectableTreeNode {
|
|
30
30
|
constructor(readonly counter: number, readonly id: string, readonly run: TestRun, readonly parent: CompositeTreeNode) { }
|
|
@@ -23,13 +23,13 @@ import { ACTION_ITEM, ContextMenuRenderer, KeybindingRegistry, codicon } from '@
|
|
|
23
23
|
import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
|
|
24
24
|
import { ThemeService } from '@theia/core/lib/browser/theming';
|
|
25
25
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
26
|
-
import { TestController, TestExecutionState, TestItem, TestService } from '../test-service';
|
|
26
|
+
import { TestController, TestExecutionState, TestItem, TestService } from '../test-service.js';
|
|
27
27
|
import * as React from '@theia/core/shared/react';
|
|
28
|
-
import { DeltaKind, TreeDelta } from '../../common/tree-delta';
|
|
28
|
+
import { DeltaKind, TreeDelta } from '../../common/tree-delta.js';
|
|
29
29
|
import { AcceleratorSource, CommandMenu, CommandRegistry, Disposable, DisposableCollection, Event, MenuModelRegistry, nls, ILogger } from '@theia/core';
|
|
30
|
-
import { TestExecutionStateManager } from './test-execution-state-manager';
|
|
31
|
-
import { TestOutputUIModel } from './test-output-ui-model';
|
|
32
|
-
import { TEST_VIEW_INLINE_MENU } from './test-view-contribution';
|
|
30
|
+
import { TestExecutionStateManager } from './test-execution-state-manager.js';
|
|
31
|
+
import { TestOutputUIModel } from './test-output-ui-model.js';
|
|
32
|
+
import { TEST_VIEW_INLINE_MENU } from './test-view-contribution.js';
|
|
33
33
|
|
|
34
34
|
const ROOT_ID = 'TestTree';
|
|
35
35
|
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
import { AbstractViewContribution, FrontendApplicationContribution, ViewContainerTitleOptions, Widget, codicon } from '@theia/core/lib/browser';
|
|
18
18
|
import { Command, CommandRegistry, MenuModelRegistry, nls } from '@theia/core';
|
|
19
19
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
20
|
-
import { TestItem, TestRunProfileKind, TestService } from '../test-service';
|
|
20
|
+
import { TestItem, TestRunProfileKind, TestService } from '../test-service.js';
|
|
21
21
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
22
|
-
import { TestTreeWidget } from './test-tree-widget';
|
|
22
|
+
import { TestTreeWidget } from './test-tree-widget.js';
|
|
23
23
|
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
24
|
-
import { TestCommandId } from '../constants';
|
|
24
|
+
import { TestCommandId } from '../constants.js';
|
|
25
25
|
import { NavigationLocationService } from '@theia/editor/lib/browser/navigation/navigation-location-service';
|
|
26
26
|
import { NavigationLocation } from '@theia/editor/lib/browser/navigation/navigation-location';
|
|
27
27
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
@@ -22,22 +22,22 @@ import {
|
|
|
22
22
|
WidgetFactory, ViewContainer,
|
|
23
23
|
WidgetManager, createTreeContainer
|
|
24
24
|
} from '@theia/core/lib/browser';
|
|
25
|
-
import { TestTree, TestTreeWidget } from './test-tree-widget';
|
|
26
|
-
import { TestViewContribution, TEST_VIEW_CONTAINER_ID, TEST_VIEW_CONTAINER_TITLE_OPTIONS, TEST_VIEW_CONTEXT_MENU } from './test-view-contribution';
|
|
27
|
-
import { TestService, TestContribution, DefaultTestService } from '../test-service';
|
|
25
|
+
import { TestTree, TestTreeWidget } from './test-tree-widget.js';
|
|
26
|
+
import { TestViewContribution, TEST_VIEW_CONTAINER_ID, TEST_VIEW_CONTAINER_TITLE_OPTIONS, TEST_VIEW_CONTEXT_MENU } from './test-view-contribution.js';
|
|
27
|
+
import { TestService, TestContribution, DefaultTestService } from '../test-service.js';
|
|
28
28
|
import { bindRootContributionProvider } from '@theia/core';
|
|
29
29
|
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
30
|
-
import { TestExecutionStateManager } from './test-execution-state-manager';
|
|
31
|
-
import { TestResultWidget } from './test-result-widget';
|
|
32
|
-
import { TestOutputWidget } from './test-output-widget';
|
|
33
|
-
import { TestOutputViewContribution } from './test-output-view-contribution';
|
|
34
|
-
import { TestOutputUIModel } from './test-output-ui-model';
|
|
35
|
-
import { TestRunTree, TestRunTreeWidget } from './test-run-widget';
|
|
36
|
-
import { TestResultViewContribution } from './test-result-view-contribution';
|
|
37
|
-
import { TEST_RUNS_CONTEXT_MENU, TestRunViewContribution } from './test-run-view-contribution';
|
|
38
|
-
import { TestContextKeyService } from './test-context-key-service';
|
|
39
|
-
import { DefaultTestExecutionProgressService, TestExecutionProgressService } from '../test-execution-progress-service';
|
|
40
|
-
import { bindTestPreferences } from '../../common/test-preferences';
|
|
30
|
+
import { TestExecutionStateManager } from './test-execution-state-manager.js';
|
|
31
|
+
import { TestResultWidget } from './test-result-widget.js';
|
|
32
|
+
import { TestOutputWidget } from './test-output-widget.js';
|
|
33
|
+
import { TestOutputViewContribution } from './test-output-view-contribution.js';
|
|
34
|
+
import { TestOutputUIModel } from './test-output-ui-model.js';
|
|
35
|
+
import { TestRunTree, TestRunTreeWidget } from './test-run-widget.js';
|
|
36
|
+
import { TestResultViewContribution } from './test-result-view-contribution.js';
|
|
37
|
+
import { TEST_RUNS_CONTEXT_MENU, TestRunViewContribution } from './test-run-view-contribution.js';
|
|
38
|
+
import { TestContextKeyService } from './test-context-key-service.js';
|
|
39
|
+
import { DefaultTestExecutionProgressService, TestExecutionProgressService } from '../test-execution-progress-service.js';
|
|
40
|
+
import { bindTestPreferences } from '../../common/test-preferences.js';
|
|
41
41
|
|
|
42
42
|
export default new ContainerModule(bind => {
|
|
43
43
|
bindTestPreferences(bind);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Event } from '@theia/core';
|
|
18
|
-
import { CollectionDelta, TreeDeltaBuilder } from './tree-delta';
|
|
18
|
+
import { CollectionDelta, TreeDeltaBuilder } from './tree-delta.js';
|
|
19
19
|
import { Emitter } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
//
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
|
|
16
|
-
import { DeltaKind, TreeDelta, TreeDeltaBuilderImpl } from './tree-delta';
|
|
16
|
+
import { DeltaKind, TreeDelta, TreeDeltaBuilderImpl } from './tree-delta.js';
|
|
17
17
|
import * as chai from 'chai';
|
|
18
18
|
|
|
19
19
|
const expect = chai.expect;
|
package/src/common/tree-delta.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Emitter, Event } from '@theia/core';
|
|
18
|
-
import { ChangeBatcher } from './collections';
|
|
18
|
+
import { ChangeBatcher } from './collections.js';
|
|
19
19
|
|
|
20
20
|
export interface CollectionDelta<K, T> {
|
|
21
21
|
added?: T[];
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
|
|
16
16
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
-
import { bindTestPreferences } from '../common/test-preferences';
|
|
17
|
+
import { bindTestPreferences } from '../common/test-preferences.js';
|
|
18
18
|
|
|
19
19
|
// *****************************************************************************
|
|
20
20
|
export default new ContainerModule(bind => {
|