0.0.72 • Published 2 months ago

@spartez-software/test-utils v0.0.72

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
2 months ago

spartez test utils (Beta)

Various test helpers - jest based

prerequisites

  • ability to run tests using jest

installation

npm install @spartez-software/jira-test --save-dev

Usage

Logging

For logging inside tests it is better to use TestLogger from @spartez-software/test-utils. It's a wrapper around console.log(...), but with added test context and colors. Especially useful when running tests in parallel.

Steps

Use steps from @spartez-software/test-utils to divide your integration and e2e tests into sections that can/should be retried(in case of network.* issues, external services hiccups etc) to make the test stable. It uses https://www.npmjs.com/package/p-retry underneth, you can pass retry options by providing optional StepOpts param.

interface StepOpts {
    retries?: number,
    minTimeout?: number,
    maxTimeout?: number
}

look https://github.com/tim-kos/node-retry#retryoperationoptions for default values.

If no StepOpts are given - it defaults to

{ retries: 3 }
0.0.72

2 months ago

0.0.71

4 months ago

0.0.70

11 months ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.67

2 years ago

0.0.66

2 years ago

0.0.64

2 years ago

0.0.65

2 years ago

0.0.62

2 years ago

0.0.63

2 years ago

0.0.61

2 years ago

0.0.60

3 years ago

0.0.59

3 years ago

0.0.57

3 years ago

0.0.58

3 years ago

0.0.56

3 years ago

0.0.55

3 years ago

0.0.53

3 years ago

0.0.54

3 years ago

0.0.52

3 years ago

0.0.51

3 years ago

0.0.50

3 years ago

0.0.49

3 years ago

0.0.48

3 years ago

0.0.47

3 years ago

0.0.46

3 years ago

0.0.45

3 years ago

0.0.44

3 years ago

0.0.43

3 years ago

0.0.41

3 years ago

0.0.42

3 years ago

0.0.40

3 years ago

0.0.39

3 years ago

0.0.37

3 years ago

0.0.38

3 years ago

0.0.36

3 years ago

0.0.35

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.32

3 years ago

0.0.31

3 years ago

0.0.30

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago