refactor!: mv data processing to vite side #684
ci.yaml
on: pull_request
Lint
31s
Packages Build Test
1m 6s
Matrix: unittest
Annotations
22 errors and 3 warnings
Lint:
packages/vitepress-plugin-git-changelog/src/client/composables/author.test.ts#L2
'Contributor' is defined but never used
|
Lint:
packages/vitepress-plugin-git-changelog/src/vite/git.ts#L9
'Commit' is defined but never used
|
Lint
Process completed with exit code 1.
|
src/vite/helpers.test.ts > parseCommitAuthors > should parse author from raw commit:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L219
AssertionError: expected [ { name: 'First Last', …(2) } ] to deeply equal [ { name: 'First Last', …(1) } ]
- Expected
+ Received
Array [
Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"email": "[email protected]",
"name": "First Last",
},
]
❯ src/vite/helpers.test.ts:219:21
|
src/vite/helpers.test.ts > parseCommitAuthors > should parse co-author from body:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L234
AssertionError: expected [ { name: 'First Last', …(2) }, …(1) ] to deeply equal [ { name: 'First Last', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"email": "[email protected]",
"name": "First Last",
},
Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"email": "[email protected]",
"name": "First Last2",
},
]
❯ src/vite/helpers.test.ts:234:21
|
src/vite/helpers.test.ts > newAvatarForAuthor > should return the mapped author avatar:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L426
AssertionError: expected 'https://gravatar.com/avatar/b4c9a2893…' to deeply equal 'https://example.com/avatar.png'
- Expected
+ Received
- https://example.com/avatar.png
+ https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro
❯ src/vite/helpers.test.ts:426:20
|
src/vite/helpers.test.ts > parseCommits > should init commit with fields transformed:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L361
TypeError: Cannot read properties of undefined (reading 'match')
❯ src/vite/helpers.ts:361:27
❯ parseCommitAuthors src/vite/helpers.ts:361:6
❯ src/vite/helpers.ts:337:27
❯ Module.parseCommits src/vite/helpers.ts:304:27
❯ src/vite/helpers.test.ts:450:20
|
src/vite/helpers.test.ts > parseCommits > should transform for commit contains no refs:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L304
TypeError: rawCommits.map is not a function
❯ Module.parseCommits src/vite/helpers.ts:304:56
❯ src/vite/helpers.test.ts:482:26
|
src/vite/helpers.test.ts > parseCommits > should transform for commit contains no body:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L304
TypeError: rawCommits.map is not a function
❯ Module.parseCommits src/vite/helpers.ts:304:56
❯ src/vite/helpers.test.ts:511:26
|
src/vite/helpers.test.ts > parseCommits > should return no commits when empty:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L304
TypeError: rawCommits.map is not a function
❯ Module.parseCommits src/vite/helpers.ts:304:56
❯ src/vite/helpers.test.ts:543:26
|
Unit Tests - 20.x
Process completed with exit code 1.
|
Unit Tests - 22.x
The job was canceled because "_20_x" failed.
|
src/vite/helpers.test.ts > parseCommitAuthors > should parse author from raw commit:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L219
AssertionError: expected [ { name: 'First Last', …(2) } ] to deeply equal [ { name: 'First Last', …(1) } ]
- Expected
+ Received
Array [
Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"email": "[email protected]",
"name": "First Last",
},
]
❯ src/vite/helpers.test.ts:219:21
|
src/vite/helpers.test.ts > parseCommitAuthors > should parse co-author from body:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L234
AssertionError: expected [ { name: 'First Last', …(2) }, …(1) ] to deeply equal [ { name: 'First Last', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"email": "[email protected]",
"name": "First Last",
},
Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"email": "[email protected]",
"name": "First Last2",
},
]
❯ src/vite/helpers.test.ts:234:21
|
src/vite/helpers.test.ts > newAvatarForAuthor > should return the mapped author avatar:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L426
AssertionError: expected 'https://gravatar.com/avatar/b4c9a2893…' to deeply equal 'https://example.com/avatar.png'
- Expected
+ Received
- https://example.com/avatar.png
+ https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro
❯ src/vite/helpers.test.ts:426:20
|
src/vite/helpers.test.ts > parseCommits > should init commit with fields transformed:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L361
TypeError: Cannot read properties of undefined (reading 'match')
❯ src/vite/helpers.ts:361:27
❯ parseCommitAuthors src/vite/helpers.ts:361:6
❯ src/vite/helpers.ts:337:27
❯ Module.parseCommits src/vite/helpers.ts:304:27
❯ src/vite/helpers.test.ts:450:20
|
src/vite/helpers.test.ts > parseCommits > should transform for commit contains no refs:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L304
TypeError: rawCommits.map is not a function
❯ Module.parseCommits src/vite/helpers.ts:304:56
❯ src/vite/helpers.test.ts:482:26
|
src/vite/helpers.test.ts > parseCommits > should transform for commit contains no body:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L304
TypeError: rawCommits.map is not a function
❯ Module.parseCommits src/vite/helpers.ts:304:56
❯ src/vite/helpers.test.ts:511:26
|
src/vite/helpers.test.ts > parseCommits > should return no commits when empty:
packages/vitepress-plugin-git-changelog/src/vite/helpers.ts#L304
TypeError: rawCommits.map is not a function
❯ Module.parseCommits src/vite/helpers.ts:304:56
❯ src/vite/helpers.test.ts:543:26
|
Unit Tests - 22.x
Process completed with exit code 1.
|
Packages Build Test
'Commit' is declared but never used.
|
Packages Build Test
Process completed with exit code 1.
|
Lint:
packages/vitepress-plugin-enhanced-readabilities/src/client/types.ts#L298
Expected JSDoc block to be aligned
|
Lint:
packages/vitepress-plugin-enhanced-readabilities/src/client/types.ts#L318
Expected JSDoc block to be aligned
|
Lint:
packages/vitepress-plugin-enhanced-readabilities/src/client/types.ts#L339
Expected JSDoc block to be aligned
|