-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Remove jasmine dependency from jest-matchers #2389
Conversation
@@ -0,0 +1,239 @@ | |||
/** | |||
* Copyright (c) 2014, Facebook, Inc. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be jasmine's copyright though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, changed to jasmine copyright
❤️ |
6691b2e
to
ffc9b48
Compare
I brought equals from the checked in version of jasmine ( https://github.com/facebook/jest/blob/db0f3b4902ddb360020be8f737db1fae7a8508c4/packages/jest-jasmine2/vendor/jasmine-2.5.2.js#L2787-L3048 ) I did a few tweaks: - Imported isUndefined, isA and isDomNode - Moved all the functions that were defined inside of functions to the global "namespace" - Disabled lint and flow
ffc9b48
to
7b622b0
Compare
In jestjs#2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
In jestjs#2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
In jestjs#2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
In #2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
I brought equals from the checked in version of jasmine ( https://github.com/facebook/jest/blob/db0f3b4902ddb360020be8f737db1fae7a8508c4/packages/jest-jasmine2/vendor/jasmine-2.5.2.js#L2787-L3048 ) I did a few tweaks: - Imported isUndefined, isA and isDomNode - Moved all the functions that were defined inside of functions to the global "namespace" - Disabled lint and flow
In jestjs#2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
I brought equals from the checked in version of jasmine ( https://github.com/facebook/jest/blob/db0f3b4902ddb360020be8f737db1fae7a8508c4/packages/jest-jasmine2/vendor/jasmine-2.5.2.js#L2787-L3048 ) I did a few tweaks: - Imported isUndefined, isA and isDomNode - Moved all the functions that were defined inside of functions to the global "namespace" - Disabled lint and flow
In jestjs#2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
I brought equals from the checked in version of jasmine ( https://github.com/facebook/jest/blob/db0f3b4902ddb360020be8f737db1fae7a8508c4/packages/jest-jasmine2/vendor/jasmine-2.5.2.js#L2787-L3048 ) I did a few tweaks: - Imported isUndefined, isA and isDomNode - Moved all the functions that were defined inside of functions to the global "namespace" - Disabled lint and flow
In jestjs#2389 I moved equals but it turns out there are more! I renamed the file `expect.js` to `jasmine-utils` and moved it to `jest-matchers` instead of `jest-matcher-utils`. This is the big thing, otherwise it's been pretty much copy and pasted from jasmine.
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. |
I brought equals from the checked in version of jasmine ( https://github.com/facebook/jest/blob/db0f3b4902ddb360020be8f737db1fae7a8508c4/packages/jest-jasmine2/vendor/jasmine-2.5.2.js#L2787-L3048 )
I did a few tweaks: