-
Notifications
You must be signed in to change notification settings - Fork 607
/
heft-plugin.json
89 lines (87 loc) · 5.17 KB
/
heft-plugin.json
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
{
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft-plugin.schema.json",
"taskPlugins": [
{
"pluginName": "jest-plugin",
"entryPoint": "./lib/JestPlugin",
"optionsSchema": "./lib/schemas/heft-jest-plugin.schema.json",
"parameterScope": "jest",
"parameters": [
{
"longName": "--config",
"parameterKind": "string",
"argumentName": "RELATIVE_PATH",
"description": "Use this parameter to control which Jest configuration file will be used to run Jest tests. If not specified, it will default to \"config/jest.config.json\". This corresponds to the \"--config\" parameter in Jest's documentation."
},
{
"longName": "--debug-heft-reporter",
"parameterKind": "flag",
"description": "Normally Heft installs a custom Jest reporter so that test results are presented consistently with other task logging. If you suspect a problem with the HeftJestReporter, specify \"--debug-heft-reporter\" to temporarily disable it so that you can compare with how Jest's default reporter would have presented it. Include this output in your bug report. Do not use \"--debug-heft-reporter\" in production."
},
{
"longName": "--detect-open-handles",
"parameterKind": "flag",
"description": "Attempt to collect and print open handles preventing Jest from exiting cleanly. This option has a significant performance penalty and should only be used for debugging. This corresponds to the \"--detectOpenHandles\" parameter in Jest's documentation."
},
{
"longName": "--disable-code-coverage",
"parameterKind": "flag",
"description": "Disable any configured code coverage. If code coverage is not configured, this parameter has no effect."
},
{
"longName": "--find-related-tests",
"parameterKind": "stringList",
"argumentName": "SOURCE_FILE",
"description": "Find and run the tests that cover a source file that was passed in as an argument. This corresponds to the \"--findRelatedTests\" parameter in Jest's documentation. This parameter is not compatible with watch mode."
},
{
"longName": "--log-heap-usage",
"parameterKind": "flag",
"description": "Logs the heap usage after every test. Useful to debug memory leaks. Use together with --expose-gc in node."
},
{
"longName": "--max-workers",
"parameterKind": "string",
"argumentName": "COUNT_OR_PERCENTAGE",
"description": "Use this parameter to control maximum number of worker processes tests are allowed to use. This parameter is similar to the parameter noted in the Jest documentation, and can either be an integer representing the number of workers to spawn when running tests, or can be a string representing a percentage of the available CPUs on the machine to utilize. Example values: \"3\", \"25%%\""
},
{
"longName": "--silent",
"parameterKind": "flag",
"description": "Prevent tests from printing messages through the console. This corresponds to the \"--silent\" parameter in Jest's documentation."
},
{
"longName": "--test-name-pattern",
"shortName": "-t",
"parameterKind": "string",
"argumentName": "REGEXP",
"description": "Run only tests with a name that matches a regular expression. The REGEXP is matched against the full name, which is a combination of the test name and all its surrounding describe blocks. This corresponds to the \"--testNamePattern\" parameter in Jest's documentation."
},
{
"longName": "--test-path-ignore-patterns",
"parameterKind": "string",
"argumentName": "REGEXP",
"description": "Avoid running tests with a source file path that matches one ore more regular expressions. On Windows you will need to use \"/\" instead of \"\\\". This corresponds to the \"--testPathIgnorePatterns\" parameter in Jest's documentation."
},
{
"longName": "--test-path-pattern",
"parameterKind": "string",
"argumentName": "REGEXP",
"description": "Run only tests with a source file path that matches a regular expression. On Windows you will need to use \"/\" instead of \"\\\". This corresponds to the \"--testPathPattern\" parameter in Jest's documentation."
},
{
"longName": "--test-timeout-ms",
"parameterKind": "integer",
"argumentName": "TIMEOUT",
"description": "Change the default timeout for tests; if a test doesn't complete within this many milliseconds, it will fail. Individual tests can override the default. If unspecified, the default is normally 5000 ms. This corresponds to the \"--testTimeout\" parameter in Jest's documentation."
},
{
"longName": "--update-snapshots",
"shortName": "-u",
"parameterKind": "flag",
"description": "Update Jest snapshots while running the tests. This corresponds to the \"--updateSnapshots\" parameter in Jest."
}
]
}
]
}