Need advice about which tool to choose?Ask the StackShare community!

Emacs

1.3K
1.2K
+ 1
322
Jest

9.6K
3.9K
+ 1
175
Add tool

Emacs vs Jest: What are the differences?

Emacs: The extensible self-documenting text editor. GNU Emacs is an extensible, customizable text editor—and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing; Jest: Painless JavaScript Unit Testing. Jest provides you with multiple layers on top of Jasmine.

Emacs can be classified as a tool in the "Text Editor" category, while Jest is grouped under "Javascript Testing Framework".

Some of the features offered by Emacs are:

  • Content-sensitive editing modes, including syntax coloring, for a variety of file types including plain text, source code, and HTML.
  • Complete built-in documentation, including a tutorial for new users.
  • Full Unicode support for nearly all human languages and their scripts.

On the other hand, Jest provides the following key features:

  • Familiar Approach: Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions
  • Mock by Default: Automatically mocks CommonJS modules returned by require(), making most existing code testable
  • Short Feedback Loop: DOM APIs are mocked and tests run in parallel via a small node.js command line utility

"Vast array of extensions" is the top reason why over 57 developers like Emacs, while over 24 developers mention "Open source" as the leading cause for choosing Jest.

Jest is an open source tool with 26.1K GitHub stars and 3.53K GitHub forks. Here's a link to Jest's open source repository on GitHub.

According to the StackShare community, Jest has a broader approval, being mentioned in 263 company stacks & 150 developers stacks; compared to Emacs, which is listed in 96 company stacks and 68 developer stacks.

Decisions about Emacs and Jest
Shared insights
on
CypressCypressJestJest

As we all know testing is an important part of any application. To assist with our testing we are going to use both Cypress and Jest. We feel these tools complement each other and will help us get good coverage of our code. We will use Cypress for our end to end testing as we've found it quite user friendly. Jest will be used for our unit tests because we've seen how many larger companies use it with great success.

See more

Postman will be used to do integration testing with the backend API we create. It offers a clean interface to create many requests, and you can even organize these requests into collections. It helps to test the backend API first to make sure it's working before using it in the front-end. Jest can also be used for testing and is already embedded into React. Not only does it offer unit testing support in javascript, it can also do snapshot testing for the front-end to make sure components are rendering correctly. Enzyme is complementary to Jest and offers more functions such as shallow rendering. UnitTest will be used for Python testing as it is simple, has a lot of functionality and already built in with python. Sentry will be used for keeping track of errors as it is also easily integratable with Heroku because they offer it as an add-on. LogDNA will be used for tracking logs which are not errors and is also a Heroku add-on. Its good to have a separate service to record logs, monitor, track and even fix errors in real-time so our application can run more smoothly.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Emacs
Pros of Jest
  • 65
    Vast array of extensions
  • 44
    Have all you can imagine
  • 40
    Everything i need in one place
  • 39
    Portability
  • 32
    Customer config
  • 16
    Your config works on any platform
  • 13
    Low memory consumption
  • 11
    Perfect for monsters
  • 10
    All life inside one program
  • 8
    Extendable, portable, fast - all at your fingertips
  • 6
    Enables extremely rapid keyboard-only navigation
  • 5
    Widely-used keybindings (e.g. by bash)
  • 5
    Extensible in Lisp
  • 5
    Runs everywhere important
  • 4
    FOSS Software
  • 4
    Powerful multilanguage IDE
  • 4
    Git integration
  • 4
    May be old but always reliable
  • 3
    Asynchronous
  • 3
    Powerful UI
  • 1
    Huge ecosystem
  • 36
    Open source
  • 32
    Mock by default makes testing much simpler
  • 23
    Testing React Native Apps
  • 20
    Parallel test running
  • 16
    Fast
  • 13
    Bundled with JSDOM to enable DOM testing
  • 8
    Mock by default screws up your classes, breaking tests
  • 7
    Out of the box code coverage
  • 7
    Promise support
  • 6
    One stop shop for unit testing
  • 3
    Great documentation
  • 2
    Assert Library Included
  • 1
    Built in watch option with interactive filtering menu
  • 1
    Preset support
  • 0
    Can be used for BDD
  • 0
    Karma

Sign up to add or upvote prosMake informed product decisions

Cons of Emacs
Cons of Jest
  • 4
    So good and extensible, that one can get sidetracked
  • 4
    Hard to learn for beginners
  • 1
    Not default preinstalled in GNU/linux
  • 4
    Documentation
  • 4
    Ambiguous configuration
  • 3
    Difficult
  • 2
    Many bugs still not fixed months/years after reporting
  • 2
    Multiple error messages for same error
  • 2
    Difficult to run single test/describe/file
  • 2
    Ambiguous
  • 2
    Bugged
  • 1
    BeforeAll timing out makes all passing tests fail
  • 1
    Slow
  • 1
    Reporter is too general
  • 1
    Unstable
  • 1
    Bad docs
  • 1
    Still does't support .mjs files natively
  • 1
    Can't fail beforeAll to abort tests
  • 0
    Interaction with watch mode on terminal

Sign up to add or upvote consMake informed product decisions

What is Emacs?

GNU Emacs is an extensible, customizable text editor—and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing.

What is Jest?

Jest provides you with multiple layers on top of Jasmine.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Emacs?
What companies use Jest?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Emacs?
What tools integrate with Jest?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Emacs and Jest?
Atom
At GitHub, we're building the text editor we've always wanted. A tool you can customize to do anything, but also use productively on the first day without ever touching a config file. Atom is modern, approachable, and hackable to the core. We can't wait to see what you build with it.
Eclipse
Standard Eclipse package suited for Java and plug-in development plus adding new plugins; already includes Git, Marketplace Client, source code and developer documentation. Click here to file a bug against Eclipse Platform.
Vim
Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. Vim is distributed free as charityware.
Spacemacs
Since version 0.101.0 and later Spacemacs totally abolishes the frontiers between Vim and Emacs. The user can now choose his/her preferred editing style and enjoy all the Spacemacs features. Even better, it is possible to dynamically switch between the two styles seamlessly which makes it possible for programmers with different styles to do seat pair programming using the same editor.
Neovim
Neovim is a project that seeks to aggressively refactor Vim in order to: simplify maintenance and encourage contributions, split the work between multiple developers, enable the implementation of new/modern user interfaces without any modifications to the core source, and improve extensibility with a new plugin architecture.
See all alternatives