All Projects → rymndhng → jest-test-mode

rymndhng / jest-test-mode

Licence: GPL-3.0 License
Emacs minor mode for running jest (Node.js test framework)

Programming Languages

shell
77523 projects
emacs lisp
2029 projects
typescript
32286 projects

Projects that are alternatives of or similar to jest-test-mode

jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
Stars: ✭ 14 (+7.69%)
Mutual labels:  jest
monorepo-typescript-next-the-sane-way
A monorepo example using TypeScript and Next.js
Stars: ✭ 104 (+700%)
Mutual labels:  jest
quantum-blox
Quantum blox - modular UI boilerplate in react
Stars: ✭ 12 (-7.69%)
Mutual labels:  jest
eslint-config-adjunct
A reasonable collection of plugins to use alongside your main esLint configuration
Stars: ✭ 39 (+200%)
Mutual labels:  jest
Hangar
Hackathon sponsorship made easy
Stars: ✭ 34 (+161.54%)
Mutual labels:  jest
react16-seed-with-apollo-graphql-scss-router4-ssr-tests-eslint-prettier-docker-webpack3-hot
Seed to create your own project using React with Apollo GraphQL client
Stars: ✭ 19 (+46.15%)
Mutual labels:  jest
rebuilding-acquia
A clone of Acquia's dashboard, built with Vue.js and Tailwind CSS.
Stars: ✭ 20 (+53.85%)
Mutual labels:  jest
jest-fuck
Play an audible 'fuck' whenever your tests fail
Stars: ✭ 44 (+238.46%)
Mutual labels:  jest
nextjs-baseweb
Slightly opinionated scaffold of Next.js and Base Web.
Stars: ✭ 46 (+253.85%)
Mutual labels:  jest
ahobsu-node-backend
🌈 MOTI ! Make Own True Identity ⭐️ 유니큐와 유초코파이 노드로 탈주하다😎
Stars: ✭ 16 (+23.08%)
Mutual labels:  jest
zeldaPlay
A Single Page Application to help zeldaPlay players to track their characters and progress
Stars: ✭ 95 (+630.77%)
Mutual labels:  jest
testing-reactjs-examples
🧪 "What should we test in our React components" - presentation examples.
Stars: ✭ 23 (+76.92%)
Mutual labels:  jest
Bookstore-CMS
A Bookstore CMS made with React-Redux. Tested with Jest.
Stars: ✭ 14 (+7.69%)
Mutual labels:  jest
portfolio
My personal portfolio website, proudly built with Next.js, TypeScript and Tailwind
Stars: ✭ 165 (+1169.23%)
Mutual labels:  jest
affirmation generator
A random affirmation generator written with ReactJS :-)
Stars: ✭ 65 (+400%)
Mutual labels:  jest
glific-frontend
Frontend for the Glific platform
Stars: ✭ 18 (+38.46%)
Mutual labels:  jest
Batteries-Included-Next.js
A starting boilerplate for a TS Next.js project with batteries included. Tailwind CSS for styling, Jest and React Testing Library working with path aliases and node-mock-http for API route testing.
Stars: ✭ 35 (+169.23%)
Mutual labels:  jest
react-native-template-ts
[DEPRECATED] ⚛️ Start a new React Native project with TypeScript, Prettier & TSLint
Stars: ✭ 34 (+161.54%)
Mutual labels:  jest
parcelui
Parcel + Typescript + React/Preact + Router + CSS Modules + SASS + Jest + Api-Now + Github Actions CI
Stars: ✭ 32 (+146.15%)
Mutual labels:  jest
best
🏆 Delightful Benchmarking & Performance Testing
Stars: ✭ 73 (+461.54%)
Mutual labels:  jest

jest-test-mode.el

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

Emacs minor mode for running jest (Nodejs test framework). Inspired by ruby-test-mode and cider-test.

Features

  1. Uses npx jest to execute tests. This respect your project’s version of jest.
  2. Keybindings to execute tests for the entire project, a test module, or a top-level test/describe block.
  3. File references in the Test Execution Buffer support jump to definition.

Keybindings

jest-test-mode comes with some default keybindings:

BindingAction
C-c C-t nRuns tests in the current buffer.
C-c C-t pRuns all tests in the project.
C-c C-t tRuns the it/test/describe block at the current point.
C-c C-t aRe-runs the previous test command.
C-c C-t d nRuns tests in the current buffer with node debugger.
C-c C-t d tRuns the describe block at the current point with node debugger.
C-c C-t d aRe-runs the previous test command with node debugger.

Installation

Install through melpa as jest-test-mode.

To configure the project with use-package:

(use-package jest-test-mode 
  :ensure t 
  :commands jest-test-mode
  :hook (typescript-mode js-mode typescript-tsx-mode))

Manually:

(require 'jest-test-mode)
(add-hook 'typescript-mode-hook 'jest-test-mode)
(add-hook 'js-mode-hook 'jest-test-mode)
(add-hook 'typescript-tsx-mode-hook 'jest-test-mode)

Resources

Thanks to the following resources for building this layer:

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Testing Notes

Verify package can be included cleanly:

# If using railwaycat/emacs, do this first
export EMACS_COMMAND=/Applications/Emacs.app/Contents/MacOS/Emacs.sh

# 1 Checkout melpa & cd in
git clone [email protected]:melpa/melpa.git && cd melpa

# 3 clean things up
git clean -fdx

# 4 package
make recipes/jest-test-mode

# 5 test-install
make sandbox INSTALL=jest-test-mode
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].