Skip to content

test: 单元测试

test: 单元测试 #9

Triggered via push February 4, 2024 16:41
Status Failure
Total duration 29s
Artifacts

dev-test.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 1 warning
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L41
Type '{ getWordRangeAtPosition: Mock<[position: Position, regex?: RegExp | undefined], Range | undefined>; getText: Mock<[range?: Range | undefined], string>; }' is missing the following properties from type 'TextDocument': uri, fileName, isUntitled, languageId, and 11 more.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L46
Type 'Mock<[callback: (editBuilder: TextEditorEdit) => void], void>' is not assignable to type '(callback: (editBuilder: TextEditorEdit) => void, options?: { readonly undoStopBefore: boolean; readonly undoStopAfter: boolean; } | undefined) => Thenable<boolean>'.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L56
Type '{ getWordRangeAtPosition: Mock<[position: Position, regex?: RegExp | undefined], Range | undefined>; getText: Mock<[range?: Range | undefined], string>; }' is missing the following properties from type 'TextDocument': uri, fileName, isUntitled, languageId, and 11 more.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L61
Type '{ insert: Mock<[location: Position, value: string], void>; }' is missing the following properties from type 'TextEditorEdit': replace, delete, setEndOfLine
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L80
Property 'mockReturnValueOnce' does not exist on type '(position: Position, regex?: RegExp | undefined) => Range | undefined'.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L83
Property 'mockReturnValueOnce' does not exist on type '(position: Position, regex?: RegExp | undefined) => Range | undefined'.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L87
Property 'mockReturnValueOnce' does not exist on type '(range?: Range | undefined) => string'.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L88
Property 'mockReturnValueOnce' does not exist on type '(range?: Range | undefined) => string'.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L102
Property 'mockReturnValueOnce' does not exist on type '(position: Position, regex?: RegExp | undefined) => Range | undefined'.
build (ubuntu-latest): src/test/unit/commands/displayLogMessage.spec.ts#L103
Property 'mockReturnValueOnce' does not exist on type '(position: Position, regex?: RegExp | undefined) => Range | undefined'.
build (macos-latest)
The job was canceled because "ubuntu-latest" failed.
build (macos-latest)
The operation was canceled.
build (windows-latest)
The job was canceled because "ubuntu-latest" failed.
build (windows-latest)
The operation was canceled.
build (ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.