cloudinary-video-player v1.9.5 breaking Jest test.

ClarkGunn
ClarkGunn Member Posts: 1
edited January 2023 in Developer APIs

I have a component library which is bundled with Rollup and has React component tests with Jest. Cloudinary-video-player is dynamically imported by a component and the test for this passes with v1.9.4, but fails with v1.9.5

 FAIL   @nintendo/component-library  packages/component-library/src/ui/VideoPlayer/VideoPlayer.test.js
  ● VideoPlayer › renders a Cloudinary video


    Automatic publicPath is not supported in this browser


      20 | async function loadVideoPlayer() {
      21 |   if (!loadingVideoPlayer) {
    > 22 |     loadingVideoPlayer = import('cloudinary-video-player');
         |                       ^
      23 |   }
      24 |   const module = await loadingVideoPlayer;
      25 |   return module.videoPlayer;


      at scriptUrl (node_modules/cloudinary-video-player/dist/webpack:/cloudinary-video-player/webpack/runtime/publicPath:14:23)
      at node_modules/cloudinary-video-player/dist/webpack:/cloudinary-video-player/webpack/runtime/publicPath:16:25
      at factory (node_modules/cloudinary-video-player/dist/webpack:/cloudinary-video-player/index.js:39:1)
      at node_modules/cloudinary-video-player/dist/webpack:/cloudinary-video-player/webpack/universalModuleDefinition:3:20
      at Object.<anonymous> (node_modules/cloudinary-video-player/dist/webpack:/cloudinary-video-player/webpack/universalModuleDefinition:1:1)
      at utils/cloudinary.js:22:23
      at loadVideoPlayer (utils/cloudinary.js:24:18)
      at createVideoPlayer (utils/cloudinary.js:29:18)
Tagged:

Comments

  • Wissam
    Wissam Member, Cloudinary Staff Posts: 57

    Hi there,

    Thank you for reaching out.

    We are investigating this error on our side and will keep you posted on our proceedings.

    Regards,

    Wissam

  • Wissam
    Wissam Member, Cloudinary Staff Posts: 57

    Hi there,

    I would like to have some more information :

    1- Can we see the rest of the package/component?

    2- What is the full config object?

    3- Are they requiring Dash? 

    Looking forward to your reply.

    Regards,

    Wissam