chore(deps): bump date-fns from 2.28.0 to 4.1.0 #1475
806 passed, 12 failed and 0 skipped
❌ test-results.json
818 tests were completed in 567s with 806 passed, 12 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/src/api/common-tests.js | 7✅ | 100ms | ||
test/src/api/routes/test-author.js | 17✅ | 303ms | ||
test/src/api/routes/test-edition-group.js | 16✅ | 133ms | ||
test/src/api/routes/test-edition.js | 23✅ | 596ms | ||
test/src/api/routes/test-publisher.js | 22✅ | 423ms | ||
test/src/api/routes/test-search.js | 6✅ | 306ms | ||
test/src/api/routes/test-series.js | 17✅ | 190ms | ||
test/src/api/routes/test-work.js | 20✅ | 95s | ||
test/src/client/entity-editor/create-edition.js | 1✅ | 5ms | ||
test/src/client/entity-editor/validators/test-alias.js | 34✅ | 2ms | ||
test/src/client/entity-editor/validators/test-author.js | 58✅ | 11ms | ||
test/src/client/entity-editor/validators/test-edition.js | 103✅ | 12ms | ||
test/src/client/entity-editor/validators/test-identifier.js | 36✅ | 1ms | ||
test/src/client/entity-editor/validators/test-name-section.js | 27✅ | 2ms | ||
test/src/client/entity-editor/validators/test-publication.js | 22✅ | 3ms | ||
test/src/client/entity-editor/validators/test-publisher.js | 44✅ | 3ms | ||
test/src/client/entity-editor/validators/test-series.js | 25✅ | 3ms | ||
test/src/client/entity-editor/validators/test-submission-section.js | 10✅ | 0ms | ||
test/src/client/entity-editor/validators/test-work.js | 29✅ | 2ms | ||
test/src/client/unified-form/validators/test-cover-tab.js | 4✅ | 1ms | ||
test/src/client/unified-form/validators/test-detail-tab.js | 2✅ | 0ms | ||
test/src/server/helpers/collections.js | 10✅ | 48ms | ||
test/src/server/helpers/revisions.js | 20✅ | 688ms | ||
test/src/server/helpers/utils.js | 15✅ | 60ms | ||
test/src/server/routes/collection.js | 54✅ | 3s | ||
test/src/server/routes/editor.js | 8✅ | 41ms | ||
test/src/server/routes/entity/author.js | 9✅ | 1❌ | 52s | |
test/src/server/routes/entity/edition-group.js | 10✅ | 2s | ||
test/src/server/routes/entity/edition.js | 8✅ | 2❌ | 331ms | |
test/src/server/routes/entity/entity.js | 16✅ | 385ms | ||
test/src/server/routes/entity/publisher.js | 9✅ | 1❌ | 50s | |
test/src/server/routes/entity/series.js | 10✅ | 2s | ||
test/src/server/routes/entity/work.js | 10✅ | 2s | ||
test/src/server/routes/merge.js | 12✅ | 2❌ | 103s | |
test/src/server/routes/relationship.js | 4❌ | 200s | ||
test/src/server/routes/revision.js | 4✅ | 38ms | ||
test/src/server/routes/type-editor/identifier-type.js | 11✅ | 88ms | ||
test/src/server/routes/type-editor/relationship-type.js | 11✅ | 102ms | ||
test/src/server/routes/unifiedform.js | 10✅ | 653ms | ||
test/test-achievement.js | 46✅ | 2❌ | 452ms | |
test/test-render-relationship.js | 6✅ | 1ms | ||
test/test-site.js | 4✅ | 27ms |
❌ test/src/server/routes/entity/author.js
Author routes with entity editing priv
❌ should not throw an error if creating new author
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/entity/author.js)
✅ should not throw an error if requested author BBID exists
✅ should not throw an error trying to edit an existing author
✅ should not throw error while seeding author
✅ should not throw not authorized error while seeding author
✅ should throw an error if requested BBID is invalid
Author routes without entity editing priv
✅ should throw an error if trying to open author create page
✅ should throw an error trying to edit an existing author
✅ should throw an error when trying to delete an existing author
✅ should throw not authorized error while seeding author
❌ test/src/server/routes/entity/edition.js
Edition routes with entity editing priv
❌ should not throw an error if creating new edition
expected false to be true
✅ should not throw an error if requested edition BBID exists
❌ should not throw an error trying to edit an existing edition
expected false to be true
✅ should not throw error while seeding edition
✅ should not throw not authorized error while seeding edition
✅ should throw an error if requested BBID is invalid
Edition routes without entity editing priv
✅ should throw an error if trying to open edition create page
✅ should throw an error trying to edit an existing edition
✅ should throw an error when trying to delete an existing edition
✅ should throw not authorized error while seeding edition
❌ test/src/server/routes/entity/publisher.js
Publisher routes with entity editing priv
❌ should not throw an error if creating new publisher
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/entity/publisher.js)
✅ should not throw an error if requested publisher BBID exists
✅ should not throw an error trying to edit an existing publisher
✅ should not throw error while seeding publisher
✅ should not throw not authorized error while seeding publisher
✅ should throw an error if requested BBID is invalid
Publisher routes without entity editing priv
✅ should throw an error if trying to open publisher create page
✅ should throw an error trying to edit an existing publisher
✅ should throw an error when trying to delete an existing publisher
✅ should throw not authorized error while seeding publisher
❌ test/src/server/routes/merge.js
Merge routes with entity editing priv /add route
❌ "after all" hook for "should recreate the merge queue if adding another entity type"
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
✅ should add an entity to the merge queue
✅ should allow adding another entity of same type to the merge queue
✅ should do nothing and redirect when adding the same entity BBID
✅ should recreate the merge queue if adding another entity type
✅ should throw a 404 error if entity does not exist
✅ should throw an 400 error if adding an invalid BBID
✅ should throw an 404 error if BBID is absent (invalid route)
Merge routes with entity editing priv /cancel route
❌ "after all" hook for "should clear the merge queue"
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
✅ should clear the merge queue
Merge routes without entity editing priv /add route
✅ should throw 403 error when trying to add an entity to the merge queue
✅ should throw a 403 error if adding an invalid BBID
✅ should throw a 403 error if entity does not exist
✅ should throw an 404 error if BBID is absent (invalid route)
❌ test/src/server/routes/relationship.js
Relationship
❌ "after all" hook for "should be able to add new relationships without having previous relationships"
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
❌ should be able to add new relationships without having previous relationships
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
❌ should be able to add relationship on an entity
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
❌ should be able to remove relationship of an entity
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
❌ test/test-achievement.js
achievement module Author Creator Achievement
✅ I should be given to someone with an author creation
✅ II should be given to someone with 10 author creations
✅ III should be given to someone with 100 author creations
✅ should not be given to someone with 0 author creations
achievement module awardAchievement
✅ should award achievements
✅ should reject invalid achievements
✅ should reject invalid editors
achievement module awardTitle
✅ should award titles
✅ should reject invalid editors
✅ should reject invalid titles
achievement module Explorer Achievement
✅ I should be given to someone with 10 entity views
✅ I should not be given to someone with 9 entity views
✅ II should be given to someone with 100 entity views
✅ III should be given to someone with 1000 entity views
achievement module Fun Runner Achievement
✅ should be given to someone with a revision a day for a week
✅ shouldn't be given to someone without a revision a day for a week
achievement module Hot Off the Press Achievement
✅ should be given to someone with edition revision released this week
✅ shouldn't be given when edition revision released a week ago
achievement module Limited Edition Achievement
✅ I should given to someone with an edition creation
✅ II should be given to someone with 10 edition creations
✅ III should be given to someone with 100 edition creations
✅ should not given to someone with 0 edition creations
achievement module Marathoner Achievement
✅ should be given to someone with a revision a day for 30 days
✅ shouldn't be given to someone without a revision a day for 30 days
achievement module Publisher Achievement
✅ I should be given to someone with an edition group creation
✅ II should be given to someone with 10 edition groups creations
✅ III should be given to someone with 100 edition groups creations
✅ should not be given to someone with 0 edition group creation
achievement module Publisher Creator Achievement
✅ I should be given to someone with a publisher creation
✅ II should be given to someone with 10 publisher creations
✅ III should be given to someone with 100 publisher creations
✅ should not be given to someone with 0 publisher creations
achievement module Revisionist Achievement
✅ I should be given to someone with a revision
✅ II should be given to someone with 50 revisions
✅ III should be given to someone with 250 revisions
✅ should not be given to someone without a revision
achievement module Series Creator Achievement
✅ I should be given to someone with a series creation
✅ II should be given to someone with 10 series creations
✅ III should be given to someone with 100 series creations
✅ should not be given to someone with 0 series creations
achievement module Sprinter Achievement
❌ should be given to someone with 10 revisions in an hour
dateString.split is not a function
❌ should not be given to someone with 9 revisions in an hour
dateString.split is not a function
achievement module Time Traveller Achievement
✅ should be given to someone with edition revision released after today
✅ shouldn't be given to someone with edition revision already released
achievement module Worker Bee Achievement
✅ I should be given to someone with a work creation
✅ II should be given to someone with 10 work creations
✅ III should be given to someone with 100 work creations
✅ should not be given to someone with 0 work creations
Annotations
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/entity/author.js ► Author routes with entity editing priv ► should not throw an error if creating new author
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/entity/author.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/entity/author.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 40 in test/src/server/routes/entity/edition.js
github-actions / Mocha Tests
test/src/server/routes/entity/edition.js ► Edition routes with entity editing priv ► should not throw an error if creating new edition
Failed test found in:
test-results.json
Error:
expected false to be true
Raw output
AssertionError: expected false to be true
at _callee2$ (test/src/server/routes/entity/edition.js:40:23)
at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 46 in test/src/server/routes/entity/edition.js
github-actions / Mocha Tests
test/src/server/routes/entity/edition.js ► Edition routes with entity editing priv ► should not throw an error trying to edit an existing edition
Failed test found in:
test-results.json
Error:
expected false to be true
Raw output
AssertionError: expected false to be true
at _callee3$ (test/src/server/routes/entity/edition.js:46:23)
at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/entity/publisher.js ► Publisher routes with entity editing priv ► should not throw an error if creating new publisher
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/entity/publisher.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/entity/publisher.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/merge.js ► Merge routes with entity editing priv /add route ► "after all" hook for "should recreate the merge queue if adding another entity type"
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/merge.js ► Merge routes with entity editing priv /cancel route ► "after all" hook for "should clear the merge queue"
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/relationship.js ► Relationship ► "after all" hook for "should be able to add new relationships without having previous relationships"
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/relationship.js ► Relationship ► should be able to add new relationships without having previous relationships
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/relationship.js ► Relationship ► should be able to add relationship on an entity
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 0 in test-results.json
github-actions / Mocha Tests
test/src/server/routes/relationship.js ► Relationship ► should be able to remove relationship of an entity
Failed test found in:
test-results.json
Error:
Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
Raw output
Error: Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Check failure on line 405 in src/server/helpers/achievement.js
github-actions / Mocha Tests
test/test-achievement.js ► achievement module Sprinter Achievement ► should be given to someone with 10 revisions in an hour
Failed test found in:
test-results.json
Error:
dateString.split is not a function
Raw output
TypeError: dateString.split is not a function
at splitDateString (node_modules/date-fns/parseISO.cjs:105:28)
at parseISO (node_modules/date-fns/parseISO.cjs:49:23)
at map (src/server/helpers/achievement.js:405:47)
at Array.map (<anonymous>)
at _callee15$ (src/server/helpers/achievement.js:405:28)
at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)