0.0.74 • Published 7 months ago

@spartez-software/test-utils v0.0.74

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
7 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.74

7 months ago

0.0.73

11 months ago

0.0.72

1 year ago

0.0.71

2 years ago

0.0.70

2 years ago

0.0.68

3 years ago

0.0.69

3 years ago

0.0.67

3 years ago

0.0.66

3 years ago

0.0.64

3 years ago

0.0.65

3 years ago

0.0.62

4 years ago

0.0.63

4 years ago

0.0.61

4 years ago

0.0.60

4 years ago

0.0.59

4 years ago

0.0.57

4 years ago

0.0.58

4 years ago

0.0.56

4 years ago

0.0.55

4 years ago

0.0.53

4 years ago

0.0.54

4 years ago

0.0.52

4 years ago

0.0.51

4 years ago

0.0.50

4 years ago

0.0.49

4 years ago

0.0.48

4 years ago

0.0.47

4 years ago

0.0.46

4 years ago

0.0.45

4 years ago

0.0.44

4 years ago

0.0.43

4 years ago

0.0.41

4 years ago

0.0.42

4 years ago

0.0.40

4 years ago

0.0.39

4 years ago

0.0.37

4 years ago

0.0.38

4 years ago

0.0.36

4 years ago

0.0.35

4 years ago

0.0.33

4 years ago

0.0.34

4 years ago

0.0.32

4 years ago

0.0.31

4 years ago

0.0.30

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago