All Projects → Emiller88 → emacs-jest

Emiller88 / emacs-jest

Licence: GPL-3.0 license
A package to run jest inside emacs

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to emacs-jest

ede-php-autoload
PHP autoloading simulation for Emacs' Semantic
Stars: ✭ 23 (-68.92%)
Mutual labels:  emacs-modules, emacs-packages
KrazyKotlin
A collection of useful Kotlin Extension
Stars: ✭ 75 (+1.35%)
Mutual labels:  unit-testing
PHPUnit-Polyfills
Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests
Stars: ✭ 147 (+98.65%)
Mutual labels:  unit-testing
jest-preset-coffeescript
🃏 Easily write your Jests in @coffeescript.
Stars: ✭ 18 (-75.68%)
Mutual labels:  unit-testing
floss
Unit-testing for those hard to reach places
Stars: ✭ 26 (-64.86%)
Mutual labels:  unit-testing
FakeItEasy.AutoFakeIt
A very simple, yet flexible, "AutoFaker" for FakeItEasy to easily auto generate classes with faked dependencies.
Stars: ✭ 15 (-79.73%)
Mutual labels:  unit-testing
entity-framework-mock
Easy Mock wrapper for mocking EF6 DbContext and DbSet using Moq or NSubstitute
Stars: ✭ 45 (-39.19%)
Mutual labels:  unit-testing
dired-rsync
Support for rsync from Emacs dired buffers
Stars: ✭ 93 (+25.68%)
Mutual labels:  emacs-packages
Swatch
Watcher for Unit Tests written in Swift
Stars: ✭ 55 (-25.68%)
Mutual labels:  unit-testing
libcester
A robust header-only unit testing framework for C and C++ programming language. Support function mocking, memory leak detection, crash report.
Stars: ✭ 50 (-32.43%)
Mutual labels:  unit-testing
currency-api
A demo project on how to test a node/express app with Mocha, Nock and proxyquire (MNP) and code coverage with nyc/istanbul.
Stars: ✭ 19 (-74.32%)
Mutual labels:  unit-testing
tink unittest
Tinkerbell Unit Testing
Stars: ✭ 15 (-79.73%)
Mutual labels:  unit-testing
goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Stars: ✭ 3,019 (+3979.73%)
Mutual labels:  unit-testing
doctest
The fastest feature-rich C++11/14/17/20 single-header testing framework
Stars: ✭ 4,434 (+5891.89%)
Mutual labels:  unit-testing
utest
Lightweight unit testing framework for C/C++ projects. Suitable for embedded devices.
Stars: ✭ 18 (-75.68%)
Mutual labels:  unit-testing
permacoop
Open source and eco design ERP solution reserved for worker-owned business.
Stars: ✭ 167 (+125.68%)
Mutual labels:  unit-testing
test-drive
The simple testing framework
Stars: ✭ 37 (-50%)
Mutual labels:  unit-testing
NiceDemo
iOS project, built on improved MVP architecture using Coordinator pattern for routing 😎
Stars: ✭ 54 (-27.03%)
Mutual labels:  unit-testing
springboot-junit5-mockito2
Show case for how to use junit 5 and mockito 2 for unit testing and integration test in spring boot 2
Stars: ✭ 18 (-75.68%)
Mutual labels:  unit-testing
tead
Lighting the way to simpler testing
Stars: ✭ 55 (-25.68%)
Mutual labels:  unit-testing

jest.el

https://melpa.org/packages/jest-badge.svg

Credit: emacs-python-pytest

This package provides helpers to run jest.

Installation

jest.el is available from melpa.

With use-package:

(use-package jest)

Manually:

M-x package-install RET jest RET

Overview

The main command is jest-popup, which will show a dispatcher menu, making it easy to change various options and switches, and then run jest using one of the actions.

  • jest (run all tests)
  • jest-file (current file)
  • jest-file-dwim (‘Do what I mean’ for current file)
  • jest-function (the test function where the pointer is now, fallback to current file)
  • jest-last-failed (rerun previous failures)
  • jest-repeat (repeat last invocation)

A prefix argument causes the generated command line to be offered for editing, and various customization options influence how some of the commands work. See the README.org for detailed information.

Jest Minor Mode

Jest minor mode binds compilation-related commands such as compile-command and recompile-command to Jest commands, so that, for example C-c <RET> (compile) runs jest-popup and C-c C-<RET> (recompile) runs jest-repeat. The commands to run are configurable.

(use-package jest
  :after (js2-mode)
  :hook (js2-mode . jest-minor-mode))

Jest Popup

Switches
 -b bail (--bail)
 -c colors (--colors)
 -C coverage (--coverage)
 -d run doctests (--doctest-modules)
 -D debug jest config (--debug)
 -e expand (--expand)
 -f force exit (--forceExit)
 -l last commit (--lastCommit)
 -o only changed (--onlyChanged)
 -s silent (--silent)
 -v verbose (--verbose)
 -w watch (--watch)
 -W watch all (--watchAll)

Options
 =c config file (--config=)
 =k only names matching expression (-t)
 =p only files matching expression (--testPathPattern )
 =P only files not matching expression (--testPathIgnorePatterns )
 =o output file (--outputFile=)
 =x exit after N failures or errors (--maxfail=)

Run tests
 t Test all            x Test last-failed

Run tests for current context
 f Test file           F Test this file
 d Test function

Repeat tests
 r Repeat last test run

Contributing

Please create a new issue or submit a PR.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].