Git Product home page Git Product logo

Comments (8)

 avatar commented on June 16, 2024 2

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.

ljharb avatar ljharb commented on June 16, 2024

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.

 avatar commented on June 16, 2024

@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.

ljharb avatar ljharb commented on June 16, 2024

@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.

 avatar commented on June 16, 2024

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.

ljharb avatar ljharb commented on June 16, 2024

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.

 avatar commented on June 16, 2024

I found this repo using google. Not everybody uses the npm page...

from expect.

ljharb avatar ljharb commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.