tstyche 7.2.4 → 8.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/api.d.ts +16 -761
- package/dist/api.js +16 -6170
- package/dist/bin.js +2 -3
- package/dist/checker/BaseCheckerAdapter.d.ts +15 -0
- package/dist/checker/BaseCheckerAdapter.js +32 -0
- package/dist/checker/CompatCheckerAdapter.d.ts +70 -0
- package/dist/checker/CompatCheckerAdapter.js +221 -0
- package/dist/checker/NativeCheckerAdapter.d.ts +70 -0
- package/dist/checker/NativeCheckerAdapter.js +200 -0
- package/dist/checker/index.d.ts +3 -0
- package/dist/checker/index.js +2 -0
- package/dist/checker/types.d.ts +9 -0
- package/dist/checker/types.js +1 -0
- package/dist/cli/Cli.d.ts +5 -0
- package/dist/cli/Cli.js +144 -0
- package/dist/cli/CliDIagnosticText.d.ts +3 -0
- package/dist/cli/CliDIagnosticText.js +9 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/collect/CollectDiagnosticText.d.ts +3 -0
- package/dist/collect/CollectDiagnosticText.js +5 -0
- package/dist/collect/CollectService.d.ts +9 -0
- package/dist/collect/CollectService.js +150 -0
- package/dist/collect/ExpectNode.d.ts +16 -0
- package/dist/collect/ExpectNode.js +30 -0
- package/dist/collect/IdentifierLookup.d.ts +18 -0
- package/dist/collect/IdentifierLookup.js +90 -0
- package/dist/collect/TestTree.d.ts +16 -0
- package/dist/collect/TestTree.js +15 -0
- package/dist/collect/TestTreeNode.d.ts +15 -0
- package/dist/collect/TestTreeNode.js +27 -0
- package/dist/collect/TestTreeNodeBrand.enum.d.ts +6 -0
- package/dist/collect/TestTreeNodeBrand.enum.js +7 -0
- package/dist/collect/TestTreeNodeFlags.enum.d.ts +6 -0
- package/dist/collect/TestTreeNodeFlags.enum.js +7 -0
- package/dist/collect/index.d.ts +6 -0
- package/dist/collect/index.js +6 -0
- package/dist/config/CommandParser.d.ts +7 -0
- package/dist/config/CommandParser.js +107 -0
- package/dist/config/Config.d.ts +18 -0
- package/dist/config/Config.js +59 -0
- package/dist/config/ConfigDiagnosticText.d.ts +19 -0
- package/dist/config/ConfigDiagnosticText.js +57 -0
- package/dist/config/ConfigParser.d.ts +10 -0
- package/dist/config/ConfigParser.js +165 -0
- package/dist/config/Directive.d.ts +9 -0
- package/dist/config/Directive.js +119 -0
- package/dist/config/DirectiveDiagnosticText.d.ts +5 -0
- package/dist/config/DirectiveDiagnosticText.js +11 -0
- package/dist/config/OptionBrand.enum.d.ts +8 -0
- package/dist/config/OptionBrand.enum.js +9 -0
- package/dist/config/OptionGroup.enum.d.ts +5 -0
- package/dist/config/OptionGroup.enum.js +6 -0
- package/dist/config/Options.d.ts +29 -0
- package/dist/config/Options.js +290 -0
- package/dist/config/Target.d.ts +7 -0
- package/dist/config/Target.js +47 -0
- package/dist/config/defaultOptions.d.ts +2 -0
- package/dist/config/defaultOptions.js +14 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.js +7 -0
- package/dist/config/types.d.ts +55 -0
- package/dist/config/types.js +1 -0
- package/dist/diagnostic/Diagnostic.d.ts +19 -0
- package/dist/diagnostic/Diagnostic.js +51 -0
- package/dist/diagnostic/DiagnosticCategory.enum.d.ts +4 -0
- package/dist/diagnostic/DiagnosticCategory.enum.js +5 -0
- package/dist/diagnostic/DiagnosticOrigin.d.ts +13 -0
- package/dist/diagnostic/DiagnosticOrigin.js +27 -0
- package/dist/diagnostic/helpers.d.ts +6 -0
- package/dist/diagnostic/helpers.js +74 -0
- package/dist/diagnostic/index.d.ts +5 -0
- package/dist/diagnostic/index.js +4 -0
- package/dist/diagnostic/types.d.ts +2 -0
- package/dist/diagnostic/types.js +1 -0
- package/dist/editor/TextEditor.d.ts +15 -0
- package/dist/editor/TextEditor.js +88 -0
- package/dist/editor/index.d.ts +2 -0
- package/dist/editor/index.js +1 -0
- package/dist/editor/types.d.ts +4 -0
- package/dist/editor/types.js +1 -0
- package/dist/environment/Environment.d.ts +5 -0
- package/dist/environment/Environment.js +89 -0
- package/dist/environment/environmentOptions.d.ts +1 -0
- package/dist/environment/environmentOptions.js +2 -0
- package/dist/environment/index.d.ts +2 -0
- package/dist/environment/index.js +1 -0
- package/dist/environment/types.d.ts +10 -0
- package/dist/environment/types.js +1 -0
- package/dist/events/EventEmitter.d.ts +14 -0
- package/dist/events/EventEmitter.js +42 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.js +1 -0
- package/dist/events/types.d.ts +88 -0
- package/dist/events/types.js +1 -0
- package/dist/expect/AbilityMatcherBase.d.ts +16 -0
- package/dist/expect/AbilityMatcherBase.js +52 -0
- package/dist/expect/Ensure.d.ts +10 -0
- package/dist/expect/Ensure.js +51 -0
- package/dist/expect/ExpectDiagnosticText.d.ts +29 -0
- package/dist/expect/ExpectDiagnosticText.js +87 -0
- package/dist/expect/ExpectService.d.ts +21 -0
- package/dist/expect/ExpectService.js +90 -0
- package/dist/expect/RelationMatcherBase.d.ts +12 -0
- package/dist/expect/RelationMatcherBase.js +16 -0
- package/dist/expect/ToAcceptProps.d.ts +10 -0
- package/dist/expect/ToAcceptProps.js +52 -0
- package/dist/expect/ToBe.d.ts +13 -0
- package/dist/expect/ToBe.js +18 -0
- package/dist/expect/ToBeApplicable.d.ts +10 -0
- package/dist/expect/ToBeApplicable.js +72 -0
- package/dist/expect/ToBeAssignableFrom.d.ts +9 -0
- package/dist/expect/ToBeAssignableFrom.js +12 -0
- package/dist/expect/ToBeAssignableTo.d.ts +9 -0
- package/dist/expect/ToBeAssignableTo.js +12 -0
- package/dist/expect/ToBeCallableWith.d.ts +11 -0
- package/dist/expect/ToBeCallableWith.js +29 -0
- package/dist/expect/ToBeConstructableWith.d.ts +11 -0
- package/dist/expect/ToBeConstructableWith.js +29 -0
- package/dist/expect/ToBeInstantiableWith.d.ts +10 -0
- package/dist/expect/ToBeInstantiableWith.js +31 -0
- package/dist/expect/ToHaveProperty.d.ts +10 -0
- package/dist/expect/ToHaveProperty.js +59 -0
- package/dist/expect/ToRaiseError.d.ts +9 -0
- package/dist/expect/ToRaiseError.js +82 -0
- package/dist/expect/index.d.ts +2 -0
- package/dist/expect/index.js +1 -0
- package/dist/expect/types.d.ts +7 -0
- package/dist/expect/types.js +1 -0
- package/dist/file/FilePosition.d.ts +7 -0
- package/dist/file/FilePosition.js +16 -0
- package/dist/file/index.d.ts +1 -0
- package/dist/file/index.js +1 -0
- package/dist/glob/Braces.d.ts +4 -0
- package/dist/glob/Braces.js +56 -0
- package/dist/glob/Glob.d.ts +4 -0
- package/dist/glob/Glob.js +47 -0
- package/dist/glob/index.d.ts +1 -0
- package/dist/glob/index.js +1 -0
- package/dist/handlers/CancellationHandler.d.ts +7 -0
- package/dist/handlers/CancellationHandler.js +15 -0
- package/dist/handlers/ExitCodeHandler.d.ts +7 -0
- package/dist/handlers/ExitCodeHandler.js +20 -0
- package/dist/handlers/ResultHandler.d.ts +5 -0
- package/dist/handlers/ResultHandler.js +206 -0
- package/dist/handlers/index.d.ts +3 -0
- package/dist/handlers/index.js +3 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +40 -45
- package/dist/index.d.ts +40 -45
- package/dist/index.js +1 -2
- package/dist/input/InputService.d.ts +6 -0
- package/dist/input/InputService.js +16 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +1 -0
- package/dist/json/JsonNode.d.ts +11 -0
- package/dist/json/JsonNode.js +28 -0
- package/dist/json/JsonScanner.d.ts +14 -0
- package/dist/json/JsonScanner.js +105 -0
- package/dist/json/index.d.ts +3 -0
- package/dist/json/index.js +2 -0
- package/dist/json/types.d.ts +1 -0
- package/dist/json/types.js +1 -0
- package/dist/layers/AbilityLayer.d.ts +10 -0
- package/dist/layers/AbilityLayer.js +186 -0
- package/dist/layers/Layers.d.ts +11 -0
- package/dist/layers/Layers.js +47 -0
- package/dist/layers/SuppressedLayer.d.ts +11 -0
- package/dist/layers/SuppressedLayer.js +93 -0
- package/dist/layers/index.d.ts +2 -0
- package/dist/layers/index.js +1 -0
- package/dist/layers/types.d.ts +8 -0
- package/dist/layers/types.js +1 -0
- package/dist/output/CodeFrameText.d.ts +10 -0
- package/dist/output/CodeFrameText.js +71 -0
- package/dist/output/OutputService.d.ts +13 -0
- package/dist/output/OutputService.js +38 -0
- package/dist/output/StreamController.d.ts +10 -0
- package/dist/output/StreamController.js +16 -0
- package/dist/output/addsText.d.ts +4 -0
- package/dist/output/addsText.js +8 -0
- package/dist/output/describeNameText.d.ts +2 -0
- package/dist/output/describeNameText.js +5 -0
- package/dist/output/diagnosticText.d.ts +4 -0
- package/dist/output/diagnosticText.js +23 -0
- package/dist/output/dotText.d.ts +3 -0
- package/dist/output/dotText.js +11 -0
- package/dist/output/fileStatusText.d.ts +4 -0
- package/dist/output/fileStatusText.js +26 -0
- package/dist/output/formattedText.d.ts +2 -0
- package/dist/output/formattedText.js +19 -0
- package/dist/output/helpText.d.ts +3 -0
- package/dist/output/helpText.js +52 -0
- package/dist/output/helpers.d.ts +5 -0
- package/dist/output/helpers.js +23 -0
- package/dist/output/index.d.ts +16 -0
- package/dist/output/index.js +15 -0
- package/dist/output/prologueText.d.ts +2 -0
- package/dist/output/prologueText.js +5 -0
- package/dist/output/summaryText.d.ts +12 -0
- package/dist/output/summaryText.js +31 -0
- package/dist/output/testNameText.d.ts +3 -0
- package/dist/output/testNameText.js +24 -0
- package/dist/output/types.d.ts +5 -0
- package/dist/output/types.js +1 -0
- package/dist/output/usesText.d.ts +5 -0
- package/dist/output/usesText.js +22 -0
- package/dist/output/waitingForFileChangesText.d.ts +2 -0
- package/dist/output/waitingForFileChangesText.js +5 -0
- package/dist/output/watchUsageText.d.ts +2 -0
- package/dist/output/watchUsageText.js +12 -0
- package/dist/path/Path.d.ts +7 -0
- package/dist/path/Path.js +28 -0
- package/dist/path/index.d.ts +1 -0
- package/dist/path/index.js +1 -0
- package/dist/project/CompatMappedDiagnostic.d.ts +12 -0
- package/dist/project/CompatMappedDiagnostic.js +25 -0
- package/dist/project/CompatProjectService.d.ts +19 -0
- package/dist/project/CompatProjectService.js +188 -0
- package/dist/project/FileMapService.d.ts +6 -0
- package/dist/project/FileMapService.js +14 -0
- package/dist/project/NativeMappedDiagnostic.d.ts +14 -0
- package/dist/project/NativeMappedDiagnostic.js +29 -0
- package/dist/project/NativeProjectService.d.ts +21 -0
- package/dist/project/NativeProjectService.js +216 -0
- package/dist/project/ProjectConfigService.d.ts +8 -0
- package/dist/project/ProjectConfigService.js +73 -0
- package/dist/project/index.d.ts +3 -0
- package/dist/project/index.js +2 -0
- package/dist/project/types.d.ts +7 -0
- package/dist/project/types.js +1 -0
- package/dist/reject/Reject.d.ts +9 -0
- package/dist/reject/Reject.js +43 -0
- package/dist/reject/RejectDiagnosticText.d.ts +5 -0
- package/dist/reject/RejectDiagnosticText.js +16 -0
- package/dist/reject/helpers.d.ts +1 -0
- package/dist/reject/helpers.js +3 -0
- package/dist/reject/index.d.ts +1 -0
- package/dist/reject/index.js +1 -0
- package/dist/reporters/BaseReporter.d.ts +7 -0
- package/dist/reporters/BaseReporter.js +6 -0
- package/dist/reporters/DotReporter.d.ts +6 -0
- package/dist/reporters/DotReporter.js +51 -0
- package/dist/reporters/FileView.d.ts +13 -0
- package/dist/reporters/FileView.js +33 -0
- package/dist/reporters/ListReporter.d.ts +6 -0
- package/dist/reporters/ListReporter.js +125 -0
- package/dist/reporters/SetupReporter.d.ts +4 -0
- package/dist/reporters/SetupReporter.js +21 -0
- package/dist/reporters/SummaryReporter.d.ts +5 -0
- package/dist/reporters/SummaryReporter.js +19 -0
- package/dist/reporters/WatchReporter.d.ts +5 -0
- package/dist/reporters/WatchReporter.js +21 -0
- package/dist/reporters/index.d.ts +7 -0
- package/dist/reporters/index.js +6 -0
- package/dist/reporters/types.d.ts +5 -0
- package/dist/reporters/types.js +1 -0
- package/dist/result/DescribeResult.d.ts +9 -0
- package/dist/result/DescribeResult.js +11 -0
- package/dist/result/ExpectResult.d.ts +10 -0
- package/dist/result/ExpectResult.js +11 -0
- package/dist/result/FileResult.d.ts +15 -0
- package/dist/result/FileResult.js +13 -0
- package/dist/result/ProjectConfigKind.enum.d.ts +6 -0
- package/dist/result/ProjectConfigKind.enum.js +7 -0
- package/dist/result/ProjectResult.d.ts +8 -0
- package/dist/result/ProjectResult.js +9 -0
- package/dist/result/Result.d.ts +13 -0
- package/dist/result/Result.js +14 -0
- package/dist/result/ResultStatus.enum.d.ts +10 -0
- package/dist/result/ResultStatus.enum.js +11 -0
- package/dist/result/SuppressedResult.d.ts +5 -0
- package/dist/result/SuppressedResult.js +6 -0
- package/dist/result/TargetResult.d.ts +11 -0
- package/dist/result/TargetResult.js +12 -0
- package/dist/result/TestResult.d.ts +13 -0
- package/dist/result/TestResult.js +13 -0
- package/dist/result/helpers.d.ts +7 -0
- package/dist/result/helpers.js +21 -0
- package/dist/result/index.d.ts +11 -0
- package/dist/result/index.js +10 -0
- package/dist/result/types.d.ts +31 -0
- package/dist/result/types.js +1 -0
- package/dist/runner/FileRunner.d.ts +10 -0
- package/dist/runner/FileRunner.js +93 -0
- package/dist/runner/FixmeDiagnosticText.d.ts +4 -0
- package/dist/runner/FixmeDiagnosticText.js +8 -0
- package/dist/runner/FixmeService.d.ts +9 -0
- package/dist/runner/FixmeService.js +51 -0
- package/dist/runner/RunModeFlags.enum.d.ts +7 -0
- package/dist/runner/RunModeFlags.enum.js +8 -0
- package/dist/runner/Runner.d.ts +9 -0
- package/dist/runner/Runner.js +101 -0
- package/dist/runner/TestTreeWalker.d.ts +19 -0
- package/dist/runner/TestTreeWalker.js +169 -0
- package/dist/runner/index.d.ts +1 -0
- package/dist/runner/index.js +1 -0
- package/dist/scribbler/Color.enum.d.ts +10 -0
- package/dist/scribbler/Color.enum.js +11 -0
- package/dist/scribbler/Line.d.ts +9 -0
- package/dist/scribbler/Line.js +5 -0
- package/dist/scribbler/Scribbler.d.ts +10 -0
- package/dist/scribbler/Scribbler.js +53 -0
- package/dist/scribbler/Text.d.ts +9 -0
- package/dist/scribbler/Text.js +8 -0
- package/dist/scribbler/index.d.ts +5 -0
- package/dist/scribbler/index.js +4 -0
- package/dist/scribbler/jsxRuntime.d.ts +4 -0
- package/dist/scribbler/jsxRuntime.js +4 -0
- package/dist/scribbler/types.d.ts +19 -0
- package/dist/scribbler/types.js +1 -0
- package/dist/select/Select.d.ts +7 -0
- package/dist/select/Select.js +91 -0
- package/dist/select/SelectDiagnosticText.d.ts +6 -0
- package/dist/select/SelectDiagnosticText.js +24 -0
- package/dist/select/index.d.ts +2 -0
- package/dist/select/index.js +2 -0
- package/dist/store/Fetcher.d.ts +8 -0
- package/dist/store/Fetcher.js +52 -0
- package/dist/store/Lock.d.ts +5 -0
- package/dist/store/Lock.js +17 -0
- package/dist/store/LockService.d.ts +8 -0
- package/dist/store/LockService.js +36 -0
- package/dist/store/Manifest.d.ts +35 -0
- package/dist/store/Manifest.js +58 -0
- package/dist/store/ManifestService.d.ts +10 -0
- package/dist/store/ManifestService.js +129 -0
- package/dist/store/PackageService.d.ts +8 -0
- package/dist/store/PackageService.js +69 -0
- package/dist/store/Store.d.ts +12 -0
- package/dist/store/Store.js +103 -0
- package/dist/store/StoreDiagnosticText.d.ts +12 -0
- package/dist/store/StoreDiagnosticText.js +36 -0
- package/dist/store/TarReader.d.ts +9 -0
- package/dist/store/TarReader.js +56 -0
- package/dist/store/helpers.d.ts +1 -0
- package/dist/store/helpers.js +3 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.js +1 -0
- package/dist/structure/ComparisonResult.enum.d.ts +5 -0
- package/dist/structure/ComparisonResult.enum.js +6 -0
- package/dist/structure/Structure.d.ts +24 -0
- package/dist/structure/Structure.js +481 -0
- package/dist/structure/index.d.ts +1 -0
- package/dist/structure/index.js +1 -0
- package/dist/suppressed/SuppressedDiagnosticText.d.ts +6 -0
- package/dist/suppressed/SuppressedDiagnosticText.js +18 -0
- package/dist/suppressed/SuppressedService.d.ts +5 -0
- package/dist/suppressed/SuppressedService.js +61 -0
- package/dist/suppressed/index.d.ts +1 -0
- package/dist/suppressed/index.js +1 -0
- package/dist/tag.d.ts +1 -3
- package/dist/tag.js +2 -5
- package/dist/text/TextFile.d.ts +11 -0
- package/dist/text/TextFile.js +41 -0
- package/dist/text/TextFileService.d.ts +10 -0
- package/dist/text/TextFileService.js +31 -0
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.js +2 -0
- package/dist/text/types.d.ts +5 -0
- package/dist/text/types.js +1 -0
- package/dist/token/CancellationReason.enum.d.ts +6 -0
- package/dist/token/CancellationReason.enum.js +7 -0
- package/dist/token/CancellationToken.d.ts +8 -0
- package/dist/token/CancellationToken.js +22 -0
- package/dist/token/index.d.ts +2 -0
- package/dist/token/index.js +2 -0
- package/dist/typescript/BaseAdapter.d.ts +36 -0
- package/dist/typescript/BaseAdapter.js +83 -0
- package/dist/typescript/CompatTypeScript.d.ts +21 -0
- package/dist/typescript/CompatTypeScript.js +37 -0
- package/dist/typescript/NativeTypeScript.d.ts +24 -0
- package/dist/typescript/NativeTypeScript.js +44 -0
- package/dist/typescript/index.d.ts +3 -0
- package/dist/typescript/index.js +2 -0
- package/dist/typescript/types.d.ts +69 -0
- package/dist/typescript/types.js +1 -0
- package/dist/version/Version.d.ts +6 -0
- package/dist/version/Version.js +30 -0
- package/dist/version/index.d.ts +1 -0
- package/dist/version/index.js +1 -0
- package/dist/watch/Debounce.d.ts +9 -0
- package/dist/watch/Debounce.js +27 -0
- package/dist/watch/FileWatcher.d.ts +5 -0
- package/dist/watch/FileWatcher.js +12 -0
- package/dist/watch/WatchService.d.ts +8 -0
- package/dist/watch/WatchService.js +96 -0
- package/dist/watch/Watcher.d.ts +10 -0
- package/dist/watch/Watcher.js +31 -0
- package/dist/watch/index.d.ts +3 -0
- package/dist/watch/index.js +3 -0
- package/package.json +9 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,761 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
declare class Cli {
|
|
19
|
-
#private;
|
|
20
|
-
run(commandLine: ReadonlyArray<string>, cancellationToken?: CancellationToken): Promise<number>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare enum DiagnosticCategory {
|
|
24
|
-
Error = "error",
|
|
25
|
-
Warning = "warning"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface SuppressedError {
|
|
29
|
-
directive: TextRange;
|
|
30
|
-
ignore: boolean;
|
|
31
|
-
argument?: TextRange;
|
|
32
|
-
diagnostics: Array<ts.Diagnostic>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare enum TestTreeNodeBrand {
|
|
36
|
-
Describe = "describe",
|
|
37
|
-
Test = "test",
|
|
38
|
-
It = "it",
|
|
39
|
-
Expect = "expect"
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare enum TestTreeNodeFlags {
|
|
43
|
-
None = 0,
|
|
44
|
-
Only = 1,
|
|
45
|
-
Skip = 2,
|
|
46
|
-
Todo = 4
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare class TestTreeNode {
|
|
50
|
-
brand: TestTreeNodeBrand;
|
|
51
|
-
children: Array<TestTreeNode | ExpectNode>;
|
|
52
|
-
diagnostics: Set<ts.Diagnostic>;
|
|
53
|
-
flags: TestTreeNodeFlags;
|
|
54
|
-
name: string;
|
|
55
|
-
node: ts.CallExpression;
|
|
56
|
-
parent: TestTree | TestTreeNode;
|
|
57
|
-
constructor(compiler: typeof ts, brand: TestTreeNodeBrand, node: ts.CallExpression, parent: TestTree | TestTreeNode, flags: TestTreeNodeFlags);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare class ExpectNode extends TestTreeNode {
|
|
61
|
-
abilityDiagnostics: Set<ts.Diagnostic>;
|
|
62
|
-
isNot: boolean;
|
|
63
|
-
matcherNode: ts.CallExpression | ts.Decorator;
|
|
64
|
-
matcherNameNode: ts.PropertyAccessExpression;
|
|
65
|
-
modifierNode: ts.PropertyAccessExpression;
|
|
66
|
-
notNode: ts.PropertyAccessExpression | undefined;
|
|
67
|
-
source: ts.NodeArray<ts.Expression> | ts.NodeArray<ts.TypeNode>;
|
|
68
|
-
target: ts.NodeArray<ts.Expression> | ts.NodeArray<ts.TypeNode> | undefined;
|
|
69
|
-
constructor(compiler: typeof ts, brand: TestTreeNodeBrand, node: ts.CallExpression, parent: TestTree | TestTreeNode, flags: TestTreeNodeFlags, matcherNode: ts.CallExpression | ts.Decorator, matcherNameNode: ts.PropertyAccessExpression, modifierNode: ts.PropertyAccessExpression, notNode: ts.PropertyAccessExpression | undefined);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
declare class TestTree {
|
|
73
|
-
children: Array<TestTreeNode | ExpectNode>;
|
|
74
|
-
diagnostics: Set<ts.Diagnostic>;
|
|
75
|
-
hasOnly: boolean;
|
|
76
|
-
sourceFile: ts.SourceFile;
|
|
77
|
-
suppressedErrors: Array<SuppressedError> | undefined;
|
|
78
|
-
constructor(diagnostics: Set<ts.Diagnostic>, sourceFile: ts.SourceFile);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare class DiagnosticOrigin {
|
|
82
|
-
expectNode: ExpectNode | undefined;
|
|
83
|
-
end: number;
|
|
84
|
-
sourceFile: ts.SourceFile | JsonSourceFile;
|
|
85
|
-
start: number;
|
|
86
|
-
constructor(start: number, end: number, sourceFile: ts.SourceFile | JsonSourceFile, expectNode?: ExpectNode);
|
|
87
|
-
static fromAbilityDiagnostic(diagnostic: ts.DiagnosticWithLocation, expectNode: ExpectNode): DiagnosticOrigin;
|
|
88
|
-
static fromAssertion(expectNode: ExpectNode): DiagnosticOrigin;
|
|
89
|
-
static fromNode(node: ts.Node, expectNode?: ExpectNode): DiagnosticOrigin;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
declare class Diagnostic {
|
|
93
|
-
category: DiagnosticCategory;
|
|
94
|
-
code: string | undefined;
|
|
95
|
-
origin: DiagnosticOrigin | undefined;
|
|
96
|
-
related: Array<Diagnostic> | undefined;
|
|
97
|
-
text: string | Array<string>;
|
|
98
|
-
constructor(text: string | Array<string>, category: DiagnosticCategory, origin?: DiagnosticOrigin);
|
|
99
|
-
add(options: {
|
|
100
|
-
code?: string | undefined;
|
|
101
|
-
related?: Array<Diagnostic> | undefined;
|
|
102
|
-
}): this;
|
|
103
|
-
static error(text: string | Array<string>, origin?: DiagnosticOrigin): Diagnostic;
|
|
104
|
-
extendWith(text: string | Array<string>, origin?: DiagnosticOrigin): Diagnostic;
|
|
105
|
-
static fromDiagnostics(diagnostics: Array<ts.Diagnostic>): Array<Diagnostic>;
|
|
106
|
-
static warning(text: string | Array<string>, origin?: DiagnosticOrigin): Diagnostic;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
type DiagnosticsHandler<T extends Diagnostic | Array<Diagnostic> = Diagnostic> = (this: void, diagnostics: T) => void;
|
|
110
|
-
interface Offset {
|
|
111
|
-
position: number;
|
|
112
|
-
diff: number;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
declare function diagnosticBelongsToNode(diagnostic: ts.Diagnostic, node: ts.NodeArray<ts.Node> | ts.Node): boolean;
|
|
116
|
-
declare function getDiagnosticMessageText(diagnostic: ts.Diagnostic): string | Array<string>;
|
|
117
|
-
declare function getTextSpanEnd(span: ts.TextSpan): number;
|
|
118
|
-
declare function isDiagnosticWithLocation(diagnostic: ts.Diagnostic): diagnostic is ts.DiagnosticWithLocation;
|
|
119
|
-
|
|
120
|
-
declare class MappedDiagnostic {
|
|
121
|
-
category: ts.DiagnosticCategory;
|
|
122
|
-
code: number;
|
|
123
|
-
file: ts.SourceFile;
|
|
124
|
-
length: number | undefined;
|
|
125
|
-
messageText: string | ts.DiagnosticMessageChain;
|
|
126
|
-
relatedInformation?: Array<ts.DiagnosticRelatedInformation>;
|
|
127
|
-
start: number | undefined;
|
|
128
|
-
constructor(sourceFile: ts.SourceFile, diagnostic: ts.Diagnostic, offsets?: Array<Offset>);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
declare class JsonSourceFile {
|
|
132
|
-
#private;
|
|
133
|
-
fileName: string;
|
|
134
|
-
text: string;
|
|
135
|
-
constructor(fileName: string, text: string);
|
|
136
|
-
getLineStarts(): Array<number>;
|
|
137
|
-
getLineAndCharacterOfPosition(position: number): {
|
|
138
|
-
line: number;
|
|
139
|
-
character: number;
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
interface CommandLineOptions {
|
|
144
|
-
config?: string;
|
|
145
|
-
failFast?: boolean;
|
|
146
|
-
fetch?: boolean;
|
|
147
|
-
help?: boolean;
|
|
148
|
-
list?: boolean;
|
|
149
|
-
listFiles?: boolean;
|
|
150
|
-
only?: string;
|
|
151
|
-
prune?: boolean;
|
|
152
|
-
quiet?: boolean;
|
|
153
|
-
reporters?: Array<string>;
|
|
154
|
-
root?: string;
|
|
155
|
-
showConfig?: boolean;
|
|
156
|
-
skip?: string;
|
|
157
|
-
target?: Array<string>;
|
|
158
|
-
tsconfig?: string;
|
|
159
|
-
update?: boolean;
|
|
160
|
-
verbose?: boolean;
|
|
161
|
-
version?: boolean;
|
|
162
|
-
watch?: boolean;
|
|
163
|
-
}
|
|
164
|
-
interface ConfigFileOptions {
|
|
165
|
-
checkDeclarationFiles?: boolean;
|
|
166
|
-
checkSuppressedErrors?: boolean;
|
|
167
|
-
failFast?: boolean;
|
|
168
|
-
fixtureFileMatch?: Array<string>;
|
|
169
|
-
quiet?: boolean;
|
|
170
|
-
rejectAnyType?: boolean;
|
|
171
|
-
rejectNeverType?: boolean;
|
|
172
|
-
reporters?: Array<string>;
|
|
173
|
-
target?: Array<string>;
|
|
174
|
-
testFileMatch?: Array<string>;
|
|
175
|
-
tsconfig?: string;
|
|
176
|
-
verbose?: boolean;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
interface InlineConfig {
|
|
180
|
-
fixme?: boolean;
|
|
181
|
-
if?: {
|
|
182
|
-
target?: Array<string>;
|
|
183
|
-
};
|
|
184
|
-
template?: boolean;
|
|
185
|
-
}
|
|
186
|
-
interface ResolvedConfig extends Omit<CommandLineOptions, "config" | "root" | keyof ConfigFileOptions>, Required<ConfigFileOptions> {
|
|
187
|
-
configFilePath: string;
|
|
188
|
-
pathMatch: Array<string>;
|
|
189
|
-
rootPath: string;
|
|
190
|
-
}
|
|
191
|
-
interface TextRange {
|
|
192
|
-
start: number;
|
|
193
|
-
end: number;
|
|
194
|
-
text: string;
|
|
195
|
-
}
|
|
196
|
-
interface DirectiveRange {
|
|
197
|
-
sourceFile: ts.SourceFile;
|
|
198
|
-
namespace: TextRange;
|
|
199
|
-
directive?: TextRange;
|
|
200
|
-
argument?: TextRange;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
declare class Config {
|
|
204
|
-
#private;
|
|
205
|
-
static parseCommandLine(commandLine: ReadonlyArray<string>): Promise<{
|
|
206
|
-
commandLineOptions: CommandLineOptions;
|
|
207
|
-
pathMatch: Array<string>;
|
|
208
|
-
}>;
|
|
209
|
-
static parseConfigFile(configPath?: string | undefined, rootPath?: string | undefined): Promise<{
|
|
210
|
-
configFileOptions: ConfigFileOptions;
|
|
211
|
-
}>;
|
|
212
|
-
static resolve(options?: {
|
|
213
|
-
configFileOptions?: ConfigFileOptions;
|
|
214
|
-
commandLineOptions?: CommandLineOptions;
|
|
215
|
-
pathMatch?: Array<string>;
|
|
216
|
-
}): ResolvedConfig;
|
|
217
|
-
static resolveConfigFilePath(configPath?: string | undefined, rootPath?: string | undefined): string;
|
|
218
|
-
static resolveRootPath(rootPath?: string | undefined): string;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
declare enum OptionBrand {
|
|
222
|
-
String = "string",
|
|
223
|
-
SemverRange = "range",
|
|
224
|
-
Number = "number",
|
|
225
|
-
Boolean = "boolean",
|
|
226
|
-
True = "true",
|
|
227
|
-
List = "list"
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
declare class ConfigDiagnosticText {
|
|
231
|
-
static expected(element: string): string;
|
|
232
|
-
static expectsListItemType(optionName: string, optionBrand: OptionBrand): string;
|
|
233
|
-
static expectsValue(optionName: string): string;
|
|
234
|
-
static fileDoesNotExist(filePath: string): string;
|
|
235
|
-
static fileMatchPatternCannotStartWith(optionName: string, segment: string): Array<string>;
|
|
236
|
-
static inspectSupportedVersions(): string;
|
|
237
|
-
static moduleWasNotFound(specifier: string): string;
|
|
238
|
-
static optionValueMustBe(optionName: string, optionBrand: OptionBrand): string;
|
|
239
|
-
static rangeIsNotValid(value: string): string;
|
|
240
|
-
static rangeDoesNotMatchSupported(value: string): string;
|
|
241
|
-
static rangeUsage(): Array<string>;
|
|
242
|
-
static seen(element: string): string;
|
|
243
|
-
static unexpected(element: string): string;
|
|
244
|
-
static unknownOption(optionName: string): string;
|
|
245
|
-
static versionIsNotSupported(value: string): string;
|
|
246
|
-
static watchCannotBeEnabled(): string;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
declare class Directive {
|
|
250
|
-
#private;
|
|
251
|
-
static getDirectiveRange(compiler: typeof ts, owner: TestTreeNode, directiveText: string): DirectiveRange | undefined;
|
|
252
|
-
static getDirectiveRanges(compiler: typeof ts, node: ts.Node): Array<DirectiveRange> | undefined;
|
|
253
|
-
static getInlineConfig(ranges: Array<DirectiveRange> | DirectiveRange | undefined): Promise<InlineConfig | undefined>;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
declare const defaultOptions: Required<ConfigFileOptions>;
|
|
257
|
-
|
|
258
|
-
declare enum OptionGroup {
|
|
259
|
-
CommandLine = 2,
|
|
260
|
-
ConfigFile = 4,
|
|
261
|
-
InlineConditions = 8
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
interface BaseOptionDefinition {
|
|
265
|
-
brand: OptionBrand;
|
|
266
|
-
description: string;
|
|
267
|
-
group: OptionGroup;
|
|
268
|
-
name: string;
|
|
269
|
-
}
|
|
270
|
-
interface PrimitiveTypeOptionDefinition extends BaseOptionDefinition {
|
|
271
|
-
brand: OptionBrand.String | OptionBrand.SemverRange | OptionBrand.Number | OptionBrand.Boolean | OptionBrand.True;
|
|
272
|
-
}
|
|
273
|
-
interface ItemDefinition {
|
|
274
|
-
brand: OptionBrand.String;
|
|
275
|
-
name: string;
|
|
276
|
-
}
|
|
277
|
-
interface ListTypeOptionDefinition extends BaseOptionDefinition {
|
|
278
|
-
brand: OptionBrand.List;
|
|
279
|
-
items: ItemDefinition;
|
|
280
|
-
}
|
|
281
|
-
type OptionDefinition = PrimitiveTypeOptionDefinition | ListTypeOptionDefinition;
|
|
282
|
-
declare class Options {
|
|
283
|
-
#private;
|
|
284
|
-
static for(optionGroup: OptionGroup): Map<string, OptionDefinition>;
|
|
285
|
-
static isJsonString(text: string): boolean;
|
|
286
|
-
static resolve(optionName: string, optionValue: string, basePath?: string): string;
|
|
287
|
-
static validate(optionName: string, optionValue: string, onDiagnostics: DiagnosticsHandler, origin?: DiagnosticOrigin): Promise<void>;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
interface EnvironmentOptions {
|
|
291
|
-
fetchRetries: number;
|
|
292
|
-
fetchTimeout: number;
|
|
293
|
-
isCi: boolean;
|
|
294
|
-
noColor: boolean;
|
|
295
|
-
noInteractive: boolean;
|
|
296
|
-
npmRegistry: string;
|
|
297
|
-
storePath: string;
|
|
298
|
-
typescriptModule: string | undefined;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
declare const environmentOptions: EnvironmentOptions;
|
|
302
|
-
|
|
303
|
-
interface Reporter {
|
|
304
|
-
on: (event: ReporterEvent) => void;
|
|
305
|
-
}
|
|
306
|
-
type ReporterEvent = Exclude<Event, ["config:error" | "select:error", {}]>;
|
|
307
|
-
|
|
308
|
-
declare abstract class BaseReporter implements Reporter {
|
|
309
|
-
protected resolvedConfig: ResolvedConfig;
|
|
310
|
-
constructor(resolvedConfig: ResolvedConfig);
|
|
311
|
-
abstract on([event, payload]: ReporterEvent): void;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
declare class DotReporter extends BaseReporter {
|
|
315
|
-
#private;
|
|
316
|
-
on([event, payload]: ReporterEvent): void;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
declare class ListReporter extends BaseReporter {
|
|
320
|
-
#private;
|
|
321
|
-
on([event, payload]: ReporterEvent): void;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
declare class SetupReporter {
|
|
325
|
-
on([event, payload]: ReporterEvent): void;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
declare class SummaryReporter extends BaseReporter {
|
|
329
|
-
on([event, payload]: ReporterEvent): void;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
declare class WatchReporter extends BaseReporter {
|
|
333
|
-
on([event, payload]: ReporterEvent): void;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
declare enum ProjectConfigKind {
|
|
337
|
-
Discovered = 0,
|
|
338
|
-
Default = 1,
|
|
339
|
-
Provided = 2,
|
|
340
|
-
Synthetic = 3
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
declare enum ResultStatus {
|
|
344
|
-
Runs = "runs",
|
|
345
|
-
Passed = "passed",
|
|
346
|
-
Matched = "matched",
|
|
347
|
-
Failed = "failed",
|
|
348
|
-
Fixme = "fixme",
|
|
349
|
-
Skipped = "skipped",
|
|
350
|
-
Ignored = "ignored",
|
|
351
|
-
Todo = "todo"
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
type ProjectConfig = {
|
|
355
|
-
kind: ProjectConfigKind;
|
|
356
|
-
specifier: string;
|
|
357
|
-
};
|
|
358
|
-
type TargetResultStatus = ResultStatus.Runs | ResultStatus.Passed | ResultStatus.Failed;
|
|
359
|
-
type TargetCounts = {
|
|
360
|
-
[K in Exclude<TargetResultStatus, ResultStatus.Runs>]: number;
|
|
361
|
-
};
|
|
362
|
-
type FileResultStatus = ResultStatus.Runs | ResultStatus.Passed | ResultStatus.Failed;
|
|
363
|
-
type FileCounts = {
|
|
364
|
-
[K in Exclude<FileResultStatus, ResultStatus.Runs>]: number;
|
|
365
|
-
};
|
|
366
|
-
type TestResultStatus = ResultStatus.Runs | ResultStatus.Passed | ResultStatus.Failed | ResultStatus.Skipped | ResultStatus.Fixme | ResultStatus.Todo;
|
|
367
|
-
type TestCounts = {
|
|
368
|
-
[K in Exclude<TestResultStatus, ResultStatus.Runs>]: number;
|
|
369
|
-
};
|
|
370
|
-
type AssertionResultStatus = ResultStatus.Runs | ResultStatus.Passed | ResultStatus.Failed | ResultStatus.Skipped | ResultStatus.Fixme | ResultStatus.Todo;
|
|
371
|
-
type AssertionCounts = {
|
|
372
|
-
[K in Exclude<AssertionResultStatus, ResultStatus.Runs>]: number;
|
|
373
|
-
};
|
|
374
|
-
type SuppressedResultStatus = ResultStatus.Matched | ResultStatus.Failed | ResultStatus.Ignored;
|
|
375
|
-
type SuppressedCounts = {
|
|
376
|
-
[K in SuppressedResultStatus]: number;
|
|
377
|
-
};
|
|
378
|
-
type ResultCounts = TargetCounts | FileCounts | TestCounts | AssertionCounts | SuppressedCounts;
|
|
379
|
-
interface ResultTiming {
|
|
380
|
-
start: number;
|
|
381
|
-
end: number;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
declare class ExpectResult {
|
|
385
|
-
expect: ExpectNode;
|
|
386
|
-
parent: TestResult | undefined;
|
|
387
|
-
status: AssertionResultStatus;
|
|
388
|
-
timing: ResultTiming;
|
|
389
|
-
constructor(expect: ExpectNode, parent?: TestResult);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
declare class TestResult {
|
|
393
|
-
assertionCounts: AssertionCounts;
|
|
394
|
-
parent: DescribeResult | undefined;
|
|
395
|
-
results: Array<ExpectResult>;
|
|
396
|
-
status: ResultStatus;
|
|
397
|
-
test: TestTreeNode;
|
|
398
|
-
timing: ResultTiming;
|
|
399
|
-
constructor(test: TestTreeNode, parent?: DescribeResult);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
declare class DescribeResult {
|
|
403
|
-
describe: TestTreeNode;
|
|
404
|
-
parent: DescribeResult | undefined;
|
|
405
|
-
results: Array<DescribeResult | TestResult>;
|
|
406
|
-
timing: ResultTiming;
|
|
407
|
-
constructor(describe: TestTreeNode, parent?: DescribeResult);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
declare class FileLocation {
|
|
411
|
-
#private;
|
|
412
|
-
path: string;
|
|
413
|
-
position: number | undefined;
|
|
414
|
-
constructor(file: string | URL, position?: number);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
declare class FileResult {
|
|
418
|
-
assertionCounts: AssertionCounts;
|
|
419
|
-
file: FileLocation;
|
|
420
|
-
results: Array<DescribeResult | TestResult | ExpectResult>;
|
|
421
|
-
suppressedCounts: SuppressedCounts;
|
|
422
|
-
status: FileResultStatus;
|
|
423
|
-
testCounts: TestCounts;
|
|
424
|
-
timing: ResultTiming;
|
|
425
|
-
constructor(file: FileLocation);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
declare class ProjectResult {
|
|
429
|
-
compilerVersion: string;
|
|
430
|
-
projectConfig: ProjectConfig;
|
|
431
|
-
results: Array<FileResult>;
|
|
432
|
-
constructor(compilerVersion: string, projectConfig: ProjectConfig);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
declare class TargetResult {
|
|
436
|
-
files: Array<FileLocation>;
|
|
437
|
-
results: Map<string | undefined, ProjectResult>;
|
|
438
|
-
status: TargetResultStatus;
|
|
439
|
-
target: string;
|
|
440
|
-
timing: ResultTiming;
|
|
441
|
-
constructor(target: string, files: Array<FileLocation>);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
declare class Result {
|
|
445
|
-
assertionCounts: AssertionCounts;
|
|
446
|
-
fileCounts: FileCounts;
|
|
447
|
-
files: Array<FileLocation>;
|
|
448
|
-
results: Array<TargetResult>;
|
|
449
|
-
suppressedCounts: SuppressedCounts;
|
|
450
|
-
targetCounts: TargetCounts;
|
|
451
|
-
testCounts: TestCounts;
|
|
452
|
-
timing: ResultTiming;
|
|
453
|
-
constructor(files: Array<FileLocation>);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
declare class SuppressedResult {
|
|
457
|
-
suppressed: SuppressedError;
|
|
458
|
-
constructor(suppressed: SuppressedError);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
type Event = ["config:error", {
|
|
462
|
-
diagnostics: Array<Diagnostic>;
|
|
463
|
-
}] | ["select:error", {
|
|
464
|
-
diagnostics: Array<Diagnostic>;
|
|
465
|
-
}] | ["run:start", {
|
|
466
|
-
result: Result;
|
|
467
|
-
}] | ["run:end", {
|
|
468
|
-
result: Result;
|
|
469
|
-
}] | ["store:adds", {
|
|
470
|
-
packagePath: string;
|
|
471
|
-
packageVersion: string;
|
|
472
|
-
}] | ["store:error", {
|
|
473
|
-
diagnostics: Array<Diagnostic>;
|
|
474
|
-
}] | ["target:start", {
|
|
475
|
-
result: TargetResult;
|
|
476
|
-
}] | ["target:end", {
|
|
477
|
-
result: TargetResult;
|
|
478
|
-
}] | ["project:uses", {
|
|
479
|
-
compilerVersion: string;
|
|
480
|
-
projectConfig: ProjectConfig;
|
|
481
|
-
}] | ["project:error", {
|
|
482
|
-
diagnostics: Array<Diagnostic>;
|
|
483
|
-
}] | ["file:start", {
|
|
484
|
-
result: FileResult;
|
|
485
|
-
}] | ["file:error", {
|
|
486
|
-
diagnostics: Array<Diagnostic>;
|
|
487
|
-
result: FileResult;
|
|
488
|
-
}] | ["file:end", {
|
|
489
|
-
result: FileResult;
|
|
490
|
-
}] | ["directive:error", {
|
|
491
|
-
diagnostics: Array<Diagnostic>;
|
|
492
|
-
}] | ["collect:start", {
|
|
493
|
-
tree: TestTree;
|
|
494
|
-
}] | ["collect:error", {
|
|
495
|
-
diagnostics: Array<Diagnostic>;
|
|
496
|
-
}] | ["collect:node", {
|
|
497
|
-
node: TestTreeNode | ExpectNode;
|
|
498
|
-
}] | ["collect:end", {
|
|
499
|
-
tree: TestTree;
|
|
500
|
-
}] | ["describe:start", {
|
|
501
|
-
result: DescribeResult;
|
|
502
|
-
}] | ["describe:end", {
|
|
503
|
-
result: DescribeResult;
|
|
504
|
-
}] | ["test:start", {
|
|
505
|
-
result: TestResult;
|
|
506
|
-
}] | ["test:error", {
|
|
507
|
-
diagnostics: Array<Diagnostic>;
|
|
508
|
-
result: TestResult;
|
|
509
|
-
}] | ["test:fail", {
|
|
510
|
-
result: TestResult;
|
|
511
|
-
}] | ["test:pass", {
|
|
512
|
-
result: TestResult;
|
|
513
|
-
}] | ["test:skip", {
|
|
514
|
-
result: TestResult;
|
|
515
|
-
}] | ["test:fixme", {
|
|
516
|
-
result: TestResult;
|
|
517
|
-
}] | ["test:todo", {
|
|
518
|
-
result: TestResult;
|
|
519
|
-
}] | ["expect:start", {
|
|
520
|
-
result: ExpectResult;
|
|
521
|
-
}] | ["expect:error", {
|
|
522
|
-
diagnostics: Array<Diagnostic>;
|
|
523
|
-
result: ExpectResult;
|
|
524
|
-
}] | ["expect:fail", {
|
|
525
|
-
diagnostics: Array<Diagnostic>;
|
|
526
|
-
result: ExpectResult;
|
|
527
|
-
}] | ["expect:pass", {
|
|
528
|
-
result: ExpectResult;
|
|
529
|
-
}] | ["expect:skip", {
|
|
530
|
-
result: ExpectResult;
|
|
531
|
-
}] | ["expect:fixme", {
|
|
532
|
-
result: ExpectResult;
|
|
533
|
-
}] | ["suppressed:error", {
|
|
534
|
-
diagnostics: Array<Diagnostic>;
|
|
535
|
-
result: SuppressedResult;
|
|
536
|
-
}] | ["suppressed:match", {
|
|
537
|
-
result: SuppressedResult;
|
|
538
|
-
}] | ["suppressed:ignore", {
|
|
539
|
-
result: SuppressedResult;
|
|
540
|
-
}] | ["watch:error", {
|
|
541
|
-
diagnostics: Array<Diagnostic>;
|
|
542
|
-
}];
|
|
543
|
-
interface EventHandler {
|
|
544
|
-
on: (event: Event) => void;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
declare class EventEmitter {
|
|
548
|
-
#private;
|
|
549
|
-
static instanceCount: number;
|
|
550
|
-
constructor();
|
|
551
|
-
addHandler(handler: EventHandler): void;
|
|
552
|
-
addReporter(reporter: Reporter): void;
|
|
553
|
-
static dispatch(event: Event): void;
|
|
554
|
-
removeHandler(handler: EventHandler): void;
|
|
555
|
-
removeReporter(reporter: Reporter): void;
|
|
556
|
-
removeHandlers(): void;
|
|
557
|
-
removeReporters(): void;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
declare enum Color {
|
|
561
|
-
Reset = "0",
|
|
562
|
-
Red = "31",
|
|
563
|
-
Green = "32",
|
|
564
|
-
Yellow = "33",
|
|
565
|
-
Blue = "34",
|
|
566
|
-
Magenta = "35",
|
|
567
|
-
Cyan = "36",
|
|
568
|
-
Gray = "90"
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
type ScribblerNode = Array<ScribblerNode> | ScribblerJsx.Element | string | number | undefined;
|
|
572
|
-
type FunctionComponent = (props: Record<string, unknown>) => ScribblerJsx.Element;
|
|
573
|
-
declare namespace ScribblerJsx {
|
|
574
|
-
interface Element {
|
|
575
|
-
props: Record<string, unknown>;
|
|
576
|
-
type: FunctionComponent | number | string;
|
|
577
|
-
}
|
|
578
|
-
interface IntrinsicElements {
|
|
579
|
-
ansi: {
|
|
580
|
-
escapes: Color | Array<Color>;
|
|
581
|
-
};
|
|
582
|
-
newLine: {};
|
|
583
|
-
text: {
|
|
584
|
-
children: Array<ScribblerNode>;
|
|
585
|
-
indent: number;
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
interface LineProps {
|
|
591
|
-
children?: ScribblerNode;
|
|
592
|
-
color?: Color;
|
|
593
|
-
indent?: number;
|
|
594
|
-
}
|
|
595
|
-
declare function Line({ children, color, indent }: LineProps): ScribblerJsx.Element;
|
|
596
|
-
|
|
597
|
-
interface ScribblerOptions {
|
|
598
|
-
newLine?: string;
|
|
599
|
-
noColor?: boolean;
|
|
600
|
-
}
|
|
601
|
-
declare class Scribbler {
|
|
602
|
-
#private;
|
|
603
|
-
constructor(options?: ScribblerOptions);
|
|
604
|
-
render(element: ScribblerJsx.Element): string;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
interface TextProps {
|
|
608
|
-
children?: ScribblerNode;
|
|
609
|
-
color?: Color | undefined;
|
|
610
|
-
indent?: number | undefined;
|
|
611
|
-
}
|
|
612
|
-
declare function Text({ children, color, indent }: TextProps): ScribblerJsx.Element;
|
|
613
|
-
|
|
614
|
-
declare function addsText(packageVersion: string, packagePath: string, options?: {
|
|
615
|
-
short?: boolean;
|
|
616
|
-
}): ScribblerJsx.Element;
|
|
617
|
-
|
|
618
|
-
declare function describeNameText(name: string, indent?: number): ScribblerJsx.Element;
|
|
619
|
-
|
|
620
|
-
interface CodeFrameOptions {
|
|
621
|
-
linesAbove?: number;
|
|
622
|
-
linesBelow?: number;
|
|
623
|
-
showBreadcrumbs?: boolean;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
declare function diagnosticText(diagnostic: Diagnostic, codeFrameOptions?: CodeFrameOptions): ScribblerJsx.Element;
|
|
627
|
-
|
|
628
|
-
declare function dotText(status: ResultStatus): ScribblerJsx.Element;
|
|
629
|
-
|
|
630
|
-
declare function fileStatusText(status: FileResultStatus, file: FileLocation): ScribblerJsx.Element;
|
|
631
|
-
|
|
632
|
-
declare function formattedText(input: string | Array<string> | Record<string, unknown>): ScribblerJsx.Element;
|
|
633
|
-
|
|
634
|
-
declare function helpText(options: Map<string, OptionDefinition>, version: string): ScribblerJsx.Element;
|
|
635
|
-
|
|
636
|
-
interface WriteStream {
|
|
637
|
-
write(text: string): void;
|
|
638
|
-
}
|
|
639
|
-
declare class StreamController {
|
|
640
|
-
#private;
|
|
641
|
-
constructor(stream: WriteStream);
|
|
642
|
-
disable(): void;
|
|
643
|
-
enable(): void;
|
|
644
|
-
write(text: string): void;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
declare class OutputService {
|
|
648
|
-
#private;
|
|
649
|
-
static errorStream: StreamController;
|
|
650
|
-
static outputStream: StreamController;
|
|
651
|
-
static clearTerminal(): void;
|
|
652
|
-
static eraseLastLine(): void;
|
|
653
|
-
static writeBlankLine(count?: number): void;
|
|
654
|
-
static writeError(element: ScribblerJsx.Element | Array<ScribblerJsx.Element>): void;
|
|
655
|
-
static writeMessage(element: ScribblerJsx.Element | Array<ScribblerJsx.Element>): void;
|
|
656
|
-
static writeWarning(element: ScribblerJsx.Element | Array<ScribblerJsx.Element>): void;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
declare function prologueText(runnerVersion: string, rootPath: string): ScribblerJsx.Element;
|
|
660
|
-
|
|
661
|
-
interface SummaryTextOptions {
|
|
662
|
-
targetCounts: ResultCounts;
|
|
663
|
-
fileCounts: ResultCounts;
|
|
664
|
-
testCounts: ResultCounts;
|
|
665
|
-
assertionCounts: ResultCounts;
|
|
666
|
-
suppressedCounts: SuppressedCounts;
|
|
667
|
-
timing: ResultTiming;
|
|
668
|
-
}
|
|
669
|
-
declare function summaryText({ targetCounts, fileCounts, testCounts, assertionCounts, suppressedCounts, timing, }: SummaryTextOptions): ScribblerJsx.Element;
|
|
670
|
-
|
|
671
|
-
declare function testNameText(status: Exclude<TestResultStatus, ResultStatus.Runs>, name: string, indent?: number): ScribblerJsx.Element;
|
|
672
|
-
|
|
673
|
-
declare function usesText(compilerVersion: string, projectConfig: ProjectConfig, options?: {
|
|
674
|
-
short?: boolean;
|
|
675
|
-
}): ScribblerJsx.Element;
|
|
676
|
-
|
|
677
|
-
declare function waitingForFileChangesText(): ScribblerJsx.Element;
|
|
678
|
-
|
|
679
|
-
declare function watchUsageText(): ScribblerJsx.Element;
|
|
680
|
-
|
|
681
|
-
declare class Path {
|
|
682
|
-
static normalizeSlashes: (filePath: string) => string;
|
|
683
|
-
static dirname(filePath: string): string;
|
|
684
|
-
static join(...filePaths: Array<string>): string;
|
|
685
|
-
static relative(from: string, to: string): string;
|
|
686
|
-
static resolve(...filePaths: Array<string>): string;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
declare class Runner {
|
|
690
|
-
#private;
|
|
691
|
-
static version: string;
|
|
692
|
-
constructor(resolvedConfig: ResolvedConfig);
|
|
693
|
-
run(files: Array<string | URL | FileLocation>, cancellationToken?: CancellationToken): Promise<void>;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
declare class Select {
|
|
697
|
-
#private;
|
|
698
|
-
static isFixtureFile(filePath: string, resolvedConfig: ResolvedConfig): boolean;
|
|
699
|
-
static isTestFile(filePath: string, resolvedConfig: ResolvedConfig): boolean;
|
|
700
|
-
static selectFiles(resolvedConfig: ResolvedConfig): Promise<Array<string>>;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
declare class SelectDiagnosticText {
|
|
704
|
-
#private;
|
|
705
|
-
static noTestFilesWereLeft(resolvedConfig: ResolvedConfig): Array<string>;
|
|
706
|
-
static noTestFilesWereSelected(resolvedConfig: ResolvedConfig): Array<string>;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
interface ManifestData {
|
|
710
|
-
$version?: string;
|
|
711
|
-
lastUpdated?: number;
|
|
712
|
-
minorVersions: Array<string>;
|
|
713
|
-
npmRegistry: string;
|
|
714
|
-
packages: Record<string, {
|
|
715
|
-
integrity: string;
|
|
716
|
-
tarball: string;
|
|
717
|
-
}>;
|
|
718
|
-
resolutions: Record<string, string>;
|
|
719
|
-
versions: Array<string>;
|
|
720
|
-
}
|
|
721
|
-
declare class Manifest {
|
|
722
|
-
#private;
|
|
723
|
-
$version: string;
|
|
724
|
-
lastUpdated: number;
|
|
725
|
-
minorVersions: Array<string>;
|
|
726
|
-
npmRegistry: string;
|
|
727
|
-
packages: Record<string, {
|
|
728
|
-
integrity: string;
|
|
729
|
-
tarball: string;
|
|
730
|
-
}>;
|
|
731
|
-
resolutions: Record<string, string>;
|
|
732
|
-
versions: Array<string>;
|
|
733
|
-
constructor(data: ManifestData);
|
|
734
|
-
isOutdated(options?: {
|
|
735
|
-
ageTolerance?: number;
|
|
736
|
-
}): boolean;
|
|
737
|
-
static parse(text: string): Manifest | undefined;
|
|
738
|
-
resolve(tag: string): string | undefined;
|
|
739
|
-
stringify(): string;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
declare class Store {
|
|
743
|
-
#private;
|
|
744
|
-
static manifest: Manifest | undefined;
|
|
745
|
-
static fetch(tag: string): Promise<void>;
|
|
746
|
-
static load(tag: string): Promise<typeof ts | undefined>;
|
|
747
|
-
static open(): Promise<void>;
|
|
748
|
-
static prune(): Promise<void>;
|
|
749
|
-
static update(): Promise<void>;
|
|
750
|
-
static validateTag(tag: string): Promise<boolean | undefined>;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
declare class Version {
|
|
754
|
-
#private;
|
|
755
|
-
static isGreaterThan(source: string, target: string): boolean;
|
|
756
|
-
static isIncluded(source: string, range: Array<string>): boolean;
|
|
757
|
-
static isSatisfiedWith(source: string, target: string): boolean;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
export { BaseReporter, CancellationReason, CancellationToken, Cli, Color, Config, ConfigDiagnosticText, DescribeResult, Diagnostic, DiagnosticCategory, DiagnosticOrigin, Directive, DotReporter, EventEmitter, ExpectResult, FileLocation, FileResult, Line, ListReporter, MappedDiagnostic, OptionBrand, OptionGroup, Options, OutputService, Path, ProjectConfigKind, ProjectResult, Result, ResultStatus, Runner, Scribbler, ScribblerJsx, Select, SelectDiagnosticText, SetupReporter, Store, StreamController, SummaryReporter, SuppressedResult, TargetResult, TestResult, Text, Version, WatchReporter, addsText, defaultOptions, describeNameText, diagnosticBelongsToNode, diagnosticText, dotText, environmentOptions, fileStatusText, formattedText, getDiagnosticMessageText, getTextSpanEnd, helpText, isDiagnosticWithLocation, prologueText, summaryText, testNameText, usesText, waitingForFileChangesText, watchUsageText };
|
|
761
|
-
export type { AssertionCounts, AssertionResultStatus, CodeFrameOptions, CommandLineOptions, ConfigFileOptions, DiagnosticsHandler, DirectiveRange, EnvironmentOptions, Event, EventHandler, FileCounts, FileResultStatus, InlineConfig, ItemDefinition, Offset, OptionDefinition, ProjectConfig, Reporter, ReporterEvent, ResolvedConfig, ResultCounts, ResultTiming, ScribblerOptions, SuppressedCounts, SuppressedResultStatus, TargetCounts, TargetResultStatus, TestCounts, TestResultStatus, TextRange, WriteStream };
|
|
1
|
+
export * from "#cli";
|
|
2
|
+
export * from "#config";
|
|
3
|
+
export * from "#diagnostic";
|
|
4
|
+
export * from "#environment";
|
|
5
|
+
export * from "#events";
|
|
6
|
+
export * from "#file";
|
|
7
|
+
export * from "#output";
|
|
8
|
+
export * from "#path";
|
|
9
|
+
export * from "#reporters";
|
|
10
|
+
export * from "#result";
|
|
11
|
+
export * from "#runner";
|
|
12
|
+
export * from "#scribbler";
|
|
13
|
+
export * from "#select";
|
|
14
|
+
export * from "#store";
|
|
15
|
+
export * from "#token";
|
|
16
|
+
export * from "#version";
|