@umijs/test

  • Version 4.2.5
  • Published
  • 17.8 kB
  • 8 dependencies
  • MIT license

Install

npm i @umijs/test
yarn add @umijs/test
pnpm add @umijs/test

Overview

@umijs/test

Index

Functions

Type Aliases

Functions

function createConfig

createConfig: (opts?: {
jsTransformer?: JSTransformer;
target?: 'node' | 'browser';
jsTransformerOpts?: any;
}) => Config.InitialOptions;
  • 创建一份jest 的配置 增加了'esbuild' | 'swc' | 'ts-jest' 的 transform 增加 css|less|sass|scss|stylus 的支持 默认编译 所有的 node_modules

    Parameter opts

    ?

    Returns

    Config

Type Aliases

type JSTransformer

type JSTransformer = 'esbuild' | 'swc' | 'ts-jest';

    Package Files (1)

    Dependencies (8)

    Dev Dependencies (3)

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@umijs/test.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@umijs/test)
    • HTML
      <a href="https://www.jsdocs.io/package/@umijs/test"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>