Comments (8)
Well I really don't have the time for this, so this will be my last comment. What I use to do is write into google or into the github search field my keywords, check the quick starts from the readme files, the stars, the last updates and the travis results of the repos. If I think someting is worth to use, then I follow the installation guide in the readme file, which is usually npm install xy --save
. I use the npmjs site only if I want to publish something and I want to check whether a name already exists. Actually there is a CLI command for that too, but I always forget it, so it is faster to check the site, than reading the documentation again. I am going to use chai instead, their API is not as good as yours, but at least they don't have communication problems. Good luck!
from expect.
No, this repo is for v1 of expect and will linger forever.
You use this in mocha by importing it - just like other non-jest assertion libraries.
from expect.
@ljharb I think you are missing the point. The documentation here is not maintained e.g. "toBeA" is no longer working and spies do not work either in v23.5.0, and by the issues you tell that we should send them to jest. This is not the proper way to end a project or to give it to a different organization...
from expect.
@Inf3rno please see the note at the top of the readme: https://github.com/mjackson/expect#notice
This repo is only relevant if you’re using a version < 21; if you have issues with v21+, you’ll either need to downgrade to v1, or file issues on jest’s repo.
from expect.
Maybe I ask too much. In my dictionary this would be a WARNING with very big letters, not a notice, e.g.:
WARNING this repo was merged into jest from versions v21+!!!
If you want to upgrade:
- You can find the maintained code in a jest package: https://github.com/facebook/jest/tree/master/packages/expect
- You can find the new documentation in a jest documentation subpage: https://jestjs.io/docs/en/expect.html
- You can use jest-codemods to automatically migrate your old tests using [email protected] to the new jest version of expect (>= 21) - still nothing about how we can do it fast without reading the full documentation of codemods and maybe without moving to the jest test runner from mocha if that is possible. If not maybe add a small list of alternatives e.g. chai.
For old versions:
- Versions prior to v21 will receive limited support and bugfixes, and any future < v21 releases will be published on an npm tag that is not "latest", to avoid causing problems for v21+ users.
Documentation for old versions v20-
...
from expect.
Considering that this repo isn't linked from https://npmjs.com/expect - jest is - I don't think that's necessary. If you want to read the docs for a package you're using, start on the package's page, and click through from there - and you'll end up at the right place.
from expect.
I found this repo using google. Not everybody uses the npm page...
from expect.
Since you installed the software from npm, it doesn't really make sense to use anything else (and expect you'll always get the right result).
from expect.
Related Issues (20)
- expect(2).toBeA('number') is not working on version 21.0.0 HOT 4
- Document that the jest code mods won't cover all cases? HOT 4
- False equality with Immutable Records HOT 2
- toBeA() not functioning as expected. HOT 1
- State of the library HOT 9
- "unpkg" link broken
- toBeA() function, throwing an 'undefined' error HOT 2
- toNotExist() issue HOT 7
- toBeA() returns an error saying it is not a function or cannot read property of HOT 4
- Add note about how optional messages work to documentation
- async / await in .toThrow HOT 2
- .toBeA() isn't functioning HOT 4
- expect.createSpy is not a function HOT 2
- TypeError: received.getMockName is not a function HOT 2
- TypeError: Cannot read property 'toBeA' of undefined HOT 1
- expect(...).toExist does not work HOT 4
- “test is not defined” jest/expect on client side HOT 3
- (...).toExist is not a function HOT 1
- Cannot include module 'expect' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expect.