Skip to content

Test fixes by moving to new data structure #1305

Test fixes by moving to new data structure

Test fixes by moving to new data structure #1305

Triggered via push August 28, 2024 09:00
Status Failure
Total duration 1m 6s
Artifacts

ci.yml

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

Annotations

28 errors and 10 warnings
Types: src/controllers/acl.js#L32
Argument of type 'string[]' is not assignable to parameter of type 'Permission[]'.
Types: src/controllers/booth.js#L64
Type 'Promise<string | null>' is not assignable to type 'Promise<UserID | null>'.
Types: src/controllers/booth.js#L323
Property 'media' does not exist on type '{ size: number; id: PlaylistID; createdAt: Date; updatedAt: Date; userID: UserID; name: string; }'.
Types: src/controllers/booth.js#L331
Property 'save' does not exist on type '{ size: number; id: PlaylistID; createdAt: Date; updatedAt: Date; userID: UserID; name: string; }'.
Types: src/controllers/booth.js#L335
Property 'media' does not exist on type '{ size: number; id: PlaylistID; createdAt: Date; updatedAt: Date; userID: UserID; name: string; }'.
Types: src/controllers/booth.js#L362
Type '{ 'media.media': MediaID; }' has no properties in common with type '{ offset?: number | undefined; limit?: number | undefined; }'.
Types: src/controllers/now.js#L15
Property 'size' does not exist on type '{ id: PlaylistID; createdAt: Date; updatedAt: Date; userID: UserID; name: string; }'.
Types: src/controllers/now.js#L17
Argument of type '{ id: PlaylistItemID; mediaID: MediaID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type '{ id: PlaylistItemID; playlistID: PlaylistID; mediaID: MediaID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; }'.
Types: src/controllers/now.js#L50
Property 'roles' does not exist on type '{ id: UserID; username: string; slug: string; createdAt: Date; }'.
Types: src/controllers/now.js#L52
Argument of type '(model: { id: UserID; username: string; slug: string; avatar: string | null; activePlaylistID: PlaylistID | null; pendingActivation: boolean; createdAt: Date; updatedAt: Date; }) => { ...; }' is not assignable to parameter of type '(value: { id: UserID; username: string; slug: string; createdAt: Date; }, index: number, array: { id: UserID; username: string; slug: string; createdAt: Date; }[]) => { ...; }'.
Code style: src/Uwave.js#L7
Expected a line break after this opening brace
Code style: src/Uwave.js#L7
'PostgresDialect' is defined but never used
Code style: src/Uwave.js#L7
Expected a line break before this closing brace
Code style: src/Uwave.js#L36
Unexpected space before function parentheses
Code style: src/Uwave.js#L45
Missing '()' invoking a constructor
Code style: src/Uwave.js#L47
Unexpected space before function parentheses
Code style: src/Uwave.js#L54
Expected blank line between class members
Code style: src/Uwave.js#L66
Expected blank line between class members
Code style: src/Uwave.js#L66
Unexpected space before function parentheses
Code style: src/Uwave.js#L106
for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array
Tests (18.x, 6.0)
Process completed with exit code 6.
Tests (20.x, 6.0)
Process completed with exit code 6.
Tests (20.x, 7.0)
The job was canceled because "_18_x_6_0" failed.
Tests (20.x, 7.0)
Process completed with exit code 6.
Tests (lts/*, 5.0)
The job was canceled because "_18_x_6_0" failed.
Tests (lts/*, 5.0)
Process completed with exit code 6.
Tests (18.x, 7.0)
The job was canceled because "_18_x_6_0" failed.
Tests (18.x, 7.0)
Process completed with exit code 6.
Code style: src/HttpApi.js#L58
Missing JSDoc @Property
Code style: src/HttpApi.js#L58
Missing JSDoc @Property
Code style: src/HttpApi.js#L60
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L61
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L62
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L63
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L64
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L65
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L66
Expected no lines between tags
Code style: src/HttpApi.js#L69
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"