All Projects → mkg0 → jest-webpack-resolver

mkg0 / jest-webpack-resolver

Licence: other
path resolver for jest through the webpack.config. Auto detect webpack's resolve properties like aliases, plugins and more

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jest-webpack-resolver

Swagger Parser
Swagger 2.0 and OpenAPI 3.0 parser/validator
Stars: ✭ 710 (+1513.64%)
Mutual labels:  resolver
Sofie Tv Automation
This is the documentation for the state-based studio automation system Sofie, used in live TV news production by the Norwegian public service broadcaster NRK since September 2018.
Stars: ✭ 155 (+252.27%)
Mutual labels:  resolver
restql
RESTful API Resolver for Nested-Linked Resources | 🕸 🕷
Stars: ✭ 16 (-63.64%)
Mutual labels:  resolver
Typeorm Graphql Loader
A query builder to easily resolve nested fields and relations for TypeORM-based GraphQL servers
Stars: ✭ 47 (+6.82%)
Mutual labels:  resolver
Sbt S3 Resolver
☁️Amazon S3-based resolver for sbt
Stars: ✭ 112 (+154.55%)
Mutual labels:  resolver
Eslint Import Resolver Babel Module
Custom eslint resolve for babel-plugin-module-resolver
Stars: ✭ 236 (+436.36%)
Mutual labels:  resolver
Rubydns
A DSL for building fun, high-performance DNS servers.
Stars: ✭ 652 (+1381.82%)
Mutual labels:  resolver
ngx upstream jdomain
An asynchronous domain name resolution module for nginx upstream.
Stars: ✭ 71 (+61.36%)
Mutual labels:  resolver
Prance
Resolving Swagger/OpenAPI 2.0 and 3.0 Parser
Stars: ✭ 133 (+202.27%)
Mutual labels:  resolver
graphql-dependency
Cross service dependencies for GraphQL API with underlying @imqueue services
Stars: ✭ 17 (-61.36%)
Mutual labels:  resolver
Unbound
Unbound is a validating, recursive, and caching DNS resolver.
Stars: ✭ 1,103 (+2406.82%)
Mutual labels:  resolver
Graphql Mongoose Loader
GraphQL Mongoose Loader helpers
Stars: ✭ 98 (+122.73%)
Mutual labels:  resolver
Kuberesolver
Grpc Load Balancer with Kubernetes resolver
Stars: ✭ 241 (+447.73%)
Mutual labels:  resolver
Domain
A DNS library for Rust
Stars: ✭ 37 (-15.91%)
Mutual labels:  resolver
reach-schema
Functional schema-driven JavaScript object validation library.
Stars: ✭ 34 (-22.73%)
Mutual labels:  resolver
Sdns
Privacy important, fast, recursive dns resolver server with dnssec support
Stars: ✭ 658 (+1395.45%)
Mutual labels:  resolver
Hotchocolate
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Stars: ✭ 3,009 (+6738.64%)
Mutual labels:  resolver
style-vendorizer
Tiny CSS vendor prefixer and property alias mapper for runtime styling solutions
Stars: ✭ 56 (+27.27%)
Mutual labels:  resolver
rescached-go
Resolver (DNS) cache daemon.
Stars: ✭ 30 (-31.82%)
Mutual labels:  resolver
jurl
Fast and simple URL parsing for Java, with UTF-8 and path resolving support
Stars: ✭ 84 (+90.91%)
Mutual labels:  resolver

Jest Webpack Resolver Plugin

It is a jest plugin for enchanging jest resolving behaviour to webpack resolver through any webpack config.

Why?

webpack 2 provides some custom resolving opinions for enchanging resolving behaviours like directory-named-webpack-plugin and you can't match this kind of resolves with jest's default resolver and this plugins completely changing resolving rules.

With webpack resolving you don't have to worry about these resolving options:

resolve.alias
resolve.descriptionFiles
resolve.extensions
resolve.mainFields
resolve.mainFiles
resolve.modules
resolve.plugins

Install

Jest resolver option supported for jest >=20 versions.

install with yarn

yarn add jest-webpack-resolver -D

or install with npm

npm install jest-webpack-resolver -D

add to your jest configuration

{
  "resolver": "jest-webpack-resolver"
}

Configuration

By default plugin tries to detect webpack.config.js. You can configure it from package.json or jest.config.js (or any other jest config file)

add jestWebpackResolver to your package.json file at root level:

{
  "name": "",
  "version": "",
  "jestWebpackResolver": {
    "webpackConfig": "./path/to/webpack.config.js"
  }
}

or at your jest.config.js or jest.config.json file

{
  // ...
  jestWebpackResolver: {
    webpackConfig: './path/to/webpack.config.js'
  }
}

to stop the 'Webpack Resolver using: ./...' message use the silent option

{
  "jestWebpackResolver": {
    "silent": true,
    "webpackConfig": "./path/to/webpack.config.js"
  }
}
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].