forked from smart-on-fhir/client-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.labrc.js
115 lines (87 loc) · 4.85 KB
/
.labrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
module.exports = {
// coverage ----------------------------------------------------------------
// enable code coverage analysis (-c, --coverage)
coverage: true,
// set code coverage path (--coverage-path)
coveragePath: "src",
// set code coverage excludes (--coverage-exclude)
coverageExclude: "lib/**.*",
// include all files in coveragePath in report (--coverage-all)
coverageAll: true,
// --coverage-flat prevent recursive inclusion of all files in coveragePath in report
coverageFlat: false,
// --coverage-module enable coverage on external module
coverageModule: true,
// --coverage-pattern file pattern to use for locating files for coverage
coveragePattern: "src/**.*",
// sourcemaps --------------------------------------------------------------
// enable support for sourcemaps (-S, --sourcemaps)
sourcemaps: true,
// transform ---------------------------------------------------------------
// javascript file that exports an array of objects ie.
// [ { ext: ".js", transform: function (content, filename) { ... } } ]
// (-T, --transform)
transform: "node_modules/lab-transform-typescript",
// reporters ---------------------------------------------------------------
// reporter type [console, html, json, tap, lcov, clover, junit]
// Note that the order of entries corresponds to the `output` below
// (-r, --reporter)
reporter: ["console", "html"],
// output ------------------------------------------------------------------
// file path to write test results
// Note that the order of entries corresponds to the `reporter` above
// (-o, --output)
output: ["stdout", "test/coverage.html"],
// Other -------------------------------------------------------------------
// ignore a list of globals for the leak detection (comma separated)
// (-I, --globals)
// globals: "__core-js_shared__",
// --bail exit the process with a non zero exit code on the first test failure
bail: false,
// -p, --default-plan-threshold minimum plan threshold to apply to all tests that don't define any plan
defaultPlanThreshold: 90,
// -e, --environment value to set NODE_ENV before tests
environment: "test",
// -f, --flat prevent recursive collection of tests within the provided path
flat: false,
// -l, --leaks disable global variable leaks detection
leaks: true,
// --shuffle shuffle script execution order
shuffle: false,
// -s, --silence silence test output
silence: false,
// -k, --silent-skips don’t output skipped tests
silentSkips: false,
// -t, --threshold code coverage threshold percentage
threshold: 90,
// -m, --timeout timeout for each test in milliseconds
timeout: 3000,
// -M, --context-timeout timeout for before, after, beforeEach, afterEach in milliseconds
contextTimeout: 1000,
// -Y, --types test types definitions
types: false,
// --types-test location of types definitions test file
// -v, --verbose verbose test output
verbose: true,
// -V, --version version information
// -h, --help display usage options
// -a, --assert specify an assertion library module path to require and
// make available under Lab.assertions
// -C, --colors enable color output (defaults to terminal capabilities)
// -d, --dry skip all tests (dry run)
// --inspect starts lab with the node.js native debugger
// --seed use this seed to randomize the order with `--shuffle`.
// This is useful to debug order dependent test failures
// -L, --lint enable linting
lint: false,
// -n, --linter linter path to use
// --lint-fix apply any fixes from the linter.
// --lint-options specify options to pass to linting program. It must be a
// string that is JSON.parse(able).
// --lint-errors-threshold linter errors threshold in absolute value
// --lint-warnings-threshold linter warnings threshold in absolute value
// -P, --pattern file pattern to use for locating tests
// -g, --grep only run tests matching the given pattern which is
// internally compiled to a RegExp
// -i, --id test identifier
};