PharosLoadingSpinner: TypeError: this._spinner.animate is not a function
error in unit tests with TypeScript Vue
#713
Labels
TypeError: this._spinner.animate is not a function
error in unit tests with TypeScript Vue
#713
Expected behavior
animate
is understood to be a function for the spinner and tests pass locally. Alternatively we have setup our application to avoid alerting on this type error altogether.Or maybe theres something else we should be doing with our typescript/pharos/Vue setup that is more correct
Actual behavior
When running tests locally, mocking the
pharos-loading-spinner
appears to prevent the error from appearing. Runningjest --config ./jest.config.js --ci --reporters=default --reporters=jest-junit --runInBand
in GitLab under both node 18 and 20, we get the errorTypeError: this._spinner.animate is not a function
and prevents the build from proceedingSteps to reproduce the issue
jest-env.ts
Screenshots or code
tsconfig.json
Pharos version
Pharos 13.4
Your environment
Additional information
The text was updated successfully, but these errors were encountered: