All Projects → preactjs → jest-preset-preact

preactjs / jest-preset-preact

Licence: MIT License
Jest preset for testing Preact apps

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Less
1899 projects

Projects that are alternatives of or similar to jest-preset-preact

Preact Jest Snapshot Test Boilerplate
🚀 Test Preact components using Jest snapshots
Stars: ✭ 24 (+71.43%)
Mutual labels:  preact, jest
React Ssr Starter
All have been introduced React environment
Stars: ✭ 20 (+42.86%)
Mutual labels:  preact, jest
patent-free-react-ecosystem-migration-plan
Patent Free React Ecosystem Migration Plan
Stars: ✭ 15 (+7.14%)
Mutual labels:  preact, jest
cloudflare-worker-app-kit
☁✨ A handy set of tools for creating a Cloudflare Worker app.
Stars: ✭ 75 (+435.71%)
Mutual labels:  jest
react-testing-talk
No description or website provided.
Stars: ✭ 12 (-14.29%)
Mutual labels:  jest
vuetibook
Integrating Vue.js, Vuetify and Storybook
Stars: ✭ 16 (+14.29%)
Mutual labels:  jest
jest-wrap
Fluent pluggable interface for easily wrapping `describe` and `it` blocks in Jest tests.
Stars: ✭ 35 (+150%)
Mutual labels:  jest
react-native-template-ts
[DEPRECATED] ⚛️ Start a new React Native project with TypeScript, Prettier & TSLint
Stars: ✭ 34 (+142.86%)
Mutual labels:  jest
personal-blog
✍️ 个人技术博客
Stars: ✭ 79 (+464.29%)
Mutual labels:  jest
match-screenshot
A simple Jest or Chai matcher to compare screenshots, using Applitools Eyes
Stars: ✭ 14 (+0%)
Mutual labels:  jest
preact-bind-group
Preact Component to Group Form fields onChange Events to a single Callback
Stars: ✭ 25 (+78.57%)
Mutual labels:  preact
preact-perf-profiler
A HOC to enable measuring rendering performance for Preact components
Stars: ✭ 18 (+28.57%)
Mutual labels:  preact
walrus
🎉 Cli development framework.
Stars: ✭ 17 (+21.43%)
Mutual labels:  jest
proptypes
💂‍♂️ React's PropTypes, as a standalone module.
Stars: ✭ 60 (+328.57%)
Mutual labels:  preact
preact-compat-example
🚤 Demo of preact-compat + react-toolbox to reduce build size by 95%.
Stars: ✭ 52 (+271.43%)
Mutual labels:  preact
jest-test-mode
Emacs minor mode for running jest (Node.js test framework)
Stars: ✭ 13 (-7.14%)
Mutual labels:  jest
nextal
Starter template for NextJs with TypeScript. Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 88 (+528.57%)
Mutual labels:  jest
preact-integrations
A collection of sample apps demonstrating Preact's compatibility with various 3rd party libraries
Stars: ✭ 33 (+135.71%)
Mutual labels:  preact
node-backend-template
A template for NodeJS backend projects
Stars: ✭ 19 (+35.71%)
Mutual labels:  jest
Jest-CSS-Modules
A Jest script processor that prevents CSS module parse errors.
Stars: ✭ 75 (+435.71%)
Mutual labels:  jest

jest-preset-preact

Jest preset containing all required configuration for writing tests for preact.

Features:

  • Transpiles JSX to h()
  • Aaliases for "react" imports to point to preact/compat
  • Automatically serialize Preact VNodes in snapshots
  • Stub style imports (.css, .less, .sass/scss, etc)
  • Add typeahead preview for filtering in jest's watch mode

Usage

Install it via npm or yarn:

npm install --save-dev jest-preset-preact
# or via yarn
yarn add -D jest-preset-preact

...and add the preset to your jest.config.js file.

// jest.config.js
module.exports = {
	preset: 'jest-preset-preact',
};

License

MIT, see the LICENSE file.

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