Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest minor version bump results in @jbrowse/cli tests failing #3480

Closed
cmdcolin opened this issue Jan 25, 2023 · 3 comments
Closed

Jest minor version bump results in @jbrowse/cli tests failing #3480

cmdcolin opened this issue Jan 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@cmdcolin
Copy link
Collaborator

Performing a yarn upgrade which updates minor and patch dependencies produces an error with the CLI tests

Update from jest 29.3.1 to 29.4.0 essentially

@cmdcolin cmdcolin added the bug Something isn't working label Jan 25, 2023
@cmdcolin
Copy link
Collaborator Author

Error is

 FAIL  products/jbrowse-cli/src/commands/add-connection.test.ts
  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'bind')

      at Runtime._createJestObjectFor (node_modules/jest-cli/node_modules/jest-runtime/build/index.js:2099:64)


@cmdcolin
Copy link
Collaborator Author

Line 2099 that it crashes on inside jest code is

    const replaceProperty = this._moduleMocker.replaceProperty.bind(
      this._moduleMocker
    );

@cmdcolin
Copy link
Collaborator Author

might be related to jestjs/jest#13496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant