0.11.8 • Published 4 months ago

@anansi/jest-preset v0.11.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

🕷 Anansi Jest Preset

CircleCI npm downloads npm version PRs Welcome

Testing should just work

Usage

module.exports = {
  preset: "@anansi/jest-preset"
}

See @anansi/webpack-config for full list of module formats supported.

Motivation

Anansi's webpack automatically makes media files, svgs, scss/css modules, webworkers and TypeScript or babel work automatically. Using this preset enables all those module types to be handled in exactly as you'd expect with the webpack config.

ENV customization

Jest doesn't give much flexibility with regard to presets, so we provide some environmental variables to do customizations that impact multiple aspects of the configuration. However, this can also be done in a javascript jest config like so:

process.env.ANANSI_JEST_BABELCONFIG = 'babel.config.js';
process.env.ANANSI_JEST_TSCONFIG = 'tsconfig.test.json';

module.exports = {
  preset: '@anansi/jest-preset',
};

ANANSI_JEST_TSCONFIG = 'tsconfig.json'

It might be useful to have a specific tsconfig for tests that inherits from the base config. Use this variable to have jest pickup that file instead.

ANANSI_JEST_BABELCONFIG = true

By default jest will automatically search for the appropriate babel configuration (with the value of true). In case this doesn't work you can specify a string for the babel configuration.

Using 'babel.config.js' will automatically invoke the rootMode: 'upward' algorithm.

0.11.8

4 months ago

0.11.1

7 months ago

0.11.2

7 months ago

0.11.3

6 months ago

0.11.4

6 months ago

0.11.5

5 months ago

0.11.6

5 months ago

0.11.7

4 months ago

0.11.0

8 months ago

0.10.27

11 months ago

0.10.26

11 months ago

0.10.25

11 months ago

0.10.24

1 year ago

0.10.23

1 year ago

0.10.22

1 year ago

0.10.18

1 year ago

0.10.19

1 year ago

0.10.14

1 year ago

0.10.15

1 year ago

0.10.16

1 year ago

0.10.17

1 year ago

0.10.20

1 year ago

0.10.21

1 year ago

0.10.13

2 years ago

0.10.9

2 years ago

0.10.8

2 years ago

0.10.10

2 years ago

0.10.11

2 years ago

0.10.12

2 years ago

0.8.8

2 years ago

0.8.5

2 years ago

0.8.4

2 years ago

0.8.7

2 years ago

0.8.6

2 years ago

0.10.1

2 years ago

0.10.2

2 years ago

0.10.3

2 years ago

0.10.4

2 years ago

0.10.5

2 years ago

0.10.6

2 years ago

0.10.7

2 years ago

0.10.0

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.44

2 years ago

0.7.45

2 years ago

0.7.33

2 years ago

0.7.32

2 years ago

0.7.35

2 years ago

0.7.34

2 years ago

0.7.31

2 years ago

0.7.37

2 years ago

0.7.36

2 years ago

0.7.39

2 years ago

0.7.38

2 years ago

0.7.43

2 years ago

0.7.40

2 years ago

0.7.42

2 years ago

0.7.41

2 years ago

0.7.30

2 years ago

0.7.29

2 years ago

0.7.28

2 years ago

0.7.27

2 years ago

0.7.22

2 years ago

0.7.21

2 years ago

0.7.24

2 years ago

0.7.23

2 years ago

0.7.20

2 years ago

0.7.26

2 years ago

0.7.25

2 years ago

0.7.11

2 years ago

0.7.10

3 years ago

0.7.9

3 years ago

0.7.13

2 years ago

0.7.12

2 years ago

0.7.6

3 years ago

0.7.5

3 years ago

0.7.8

3 years ago

0.7.7

3 years ago

0.7.19

2 years ago

0.7.18

2 years ago

0.7.15

2 years ago

0.7.14

2 years ago

0.7.17

2 years ago

0.7.16

2 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.0

3 years ago

0.6.7

3 years ago

0.6.6

3 years ago

0.6.8

3 years ago

0.6.3

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.5.18

3 years ago

0.5.19

3 years ago

0.5.21

3 years ago

0.5.22

3 years ago

0.5.20

3 years ago

0.5.25

3 years ago

0.5.26

3 years ago

0.5.23

3 years ago

0.5.24

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.17

3 years ago

0.5.16

3 years ago

0.5.14

3 years ago

0.5.15

3 years ago

0.5.13

3 years ago

0.5.12

3 years ago

0.5.11

3 years ago

0.5.10

3 years ago

0.5.8

3 years ago

0.5.9

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.11

4 years ago

0.4.12

4 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.3.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago