feat: Have Inverse exportable in types.ts#15704
Conversation
Have this one exportable to reuse instead of copying it
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
babel-jest
babel-plugin-jest-hoist
babel-preset-jest
create-jest
@jest/diff-sequences
expect
@jest/expect-utils
jest
jest-changed-files
jest-circus
jest-cli
jest-config
@jest/console
@jest/core
@jest/create-cache-key-function
jest-diff
jest-docblock
jest-each
@jest/environment
jest-environment-jsdom
@jest/environment-jsdom-abstract
jest-environment-node
@jest/expect
@jest/fake-timers
@jest/get-type
@jest/globals
jest-haste-map
jest-jasmine2
jest-leak-detector
jest-matcher-utils
jest-message-util
jest-mock
@jest/pattern
jest-phabricator
jest-regex-util
@jest/reporters
jest-resolve
jest-resolve-dependencies
jest-runner
jest-runtime
@jest/schemas
jest-snapshot
@jest/snapshot-utils
@jest/source-map
@jest/test-result
@jest/test-sequencer
@jest/transform
@jest/types
jest-util
jest-validate
jest-watcher
jest-worker
pretty-format
commit: |
|
You should also export it from the |
|
And perhaps you could import and reuse the same jest/packages/jest-expect/src/types.ts Lines 27 to 32 in 77cc947 |
|
Looks good to me. You should turn off the draft mode, so that the maintainers could take a look and merge. |
Will do, wanted to double-check pipeline failure before in case I blew something, but sounds related to something else! |
Indeed, the errors in CI should be fixed by #15701. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The expect-webdriverio is based on the
expectlibrary, and it would be helpful if theInverse<Matchers>could be exportable hereWhen implementing our
Expectinterface, we have a new method likesoftwhere we want to reuse Inverse as shown below:Test plan
Used in
jest-expectandyarn buildpassed!