Import of @zoom/appssdk in jest tests generates a version warning

Zoom Apps Configuration

  • node v20.16.0
  • jest 29.7.0
  • @zoom/appssdk 0.16.22

Description
Importing @zoom/appssdk into a jest test in order to set up mocks results in a version warning despite being on the latest version.

Error?

Method Symbol(Symbol.toStringTag) is not available in this version of Zoom Apps SDK and might not work correctly. Please, update your version of Zoom Apps SDK

How To Reproduce
Create a file named index.test.js:

const zoomSdk = require('@zoom/appssdk')

jest.mock('@zoom/appssdk')

describe('test', () => {
    it('should pass', () => {
        expect(true).toBeTruthy()
    })
})

and a package.json:

{
  "scripts": {
    "test": "jest index.test.js"
  },
  "dependencies": {
    "@zoom/appssdk": "^0.16.22",
    "jest": "^29.7.0"
  }
}

then npm install && npm test

@scott.stanton ,

Thank you for posting in the Zoom Developer Forum. Could you please share the entire stack trace you observed when this error message appeared?

> test
> jest index.test.js

  console.warn
    Method Symbol(Symbol.toStringTag) is not available in this version of Zoom Apps SDK and might not work correctly. Please, update your version of Zoom Apps SDK

    > 1 | const zoomSdk = require('@zoom/appssdk')
        |                 ^
      2 |
      3 | jest.mock('@zoom/appssdk')
      4 |

      at Object.get (node_modules/@zoom/appssdk/dist/sdk.module.js:117:25)
          at Proxy.toString (<anonymous>)
      at Object.require (index.test.js:1:17)