@yankeeinlondon/typed-tester@0.13.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
A Typescript testing package for your "type tests"
asFileDiagnostic(diag)
askForRefinedPattern
asSymbolMeta(sym) -> SymbolMeta
asTestFile(filePath, options) -> Promise<TestFile>
availableWidth() -> number
buildDependencyGraph
buildDependencyMap
buildDependencyNode
calculateDependencyDepth
Classify import symbols as runtime, type, or mixed
confirmAction
consumedWidth(text) -> number
createSymbolDisplayName
DependencyCacheManager
detectCycles
DiagnosticCodeLookup
diagnosticLookup(ref)
DiagnosticMessageLookup
Extract all import declarations from a source file
fileLink(text, path)
Filter symbols based on provided filter options
filterSymbolsByGlobPatterns
Filter test files by patterns, supporting negation with '!' prefix. Supports basic glob patterns with * and ? wildcards.
findSymbolsByPattern
getAllSymbolObjectsInProject
getDependencyGraph
getDependents
Get the diagnostics for a page and then the isolates only those between a start and end line number.
getErrorsOutsideBlocks(file, ...blocks)
gets all the diagnostics for a given file.
getGraphStatistics
Determine the import location category
Provides a list of symbols for the provided file
Determine the import structure
Returns an array of dependencies for a given symbol.
getSymbolFlags(sym)
categorizes a ts-morph Symbol into a broad category defined
the SymbolKind type alias.
finds the symbol name for a given symbol or symbol metadata structure.
Determines the scope of the given symbol.
getSymbolsDefinedInFile(file, [imports])
Synchronous version that returns the cached theme or 'dark' as default Use this after calling detectTerminalTheme() at least once
get's an array of files in the repo
options which are available to all commands
handleSymbolSelection
a category for imports
imports_command
invalidateDependencyCache
type guard which checks whether the passed in value is a known command to CLI
Tests whether the passed in symbol is external to the repo being evaluated.
type guard which validates passed in value is a FileDiagnostic
Distinguishes between a true symbol definition and a generic.
Type guard which checks whether the passed in value is a Symbol
from ts-morph.
Determines if the given symbol is exported in the project.
Type guard which checks whether the passed in value is SymbolMeta.
type guard which validates passed in value is a Diagnostic from
Typescript (but not ts-morph).
type guard which validates passed in value is a Diagnostic from
ts-morph.
Check if a symbol name matches a filter string
DiagnosticMessageLookup
messages out to stderr (to avoid conflicts with primary output going to stdout)
used to define CLI variable as a numeric array
options which are available only when no command is expressed
padEndVisible(text, targetWidth) -> string
prettyPath(path)
prettyPath
Returns a ts-morph project from an array of possible tsconfig files, using the first match in the file system.
make file reference relative from current working directory
returns a relative filepath from the project's root
Reset the project cache - useful for testing when you need to switch projects
selectMultipleSymbolsFromMatches
selectSymbolFromMatches
messages out to stderr (to avoid conflicts with primary output going to stdout)
Removes all ANSI escape codes from a string, including:
The union type which represents all the keys to the ts.SymbolFlags enumeration.
type utility which provides the name of the SymbolFlag for a given
numerical representation of it's ts.SymbolFlags property.
tests whether the passed in symbol has any of the passed
in ts.SymbolFlags
SymbolMetaWithDeps
COMMAND
specifies the scope of where the symbol is available:
traverseDependencies
truncateVisible(text, maxWidth) -> string
tsCodeLink(code: number)
updateDependencyGraph
urlLink(text, path)