4.0.3 • Published 2 years ago

@component-controls/jest-extract v4.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Table of contents

Overview

Given a file name, retrives the jest tests and associated results.

Installation

This package is usually installed as part of the @component-controls package, but you can also install it standalone:

$ npm install @component-controls/jest-extract --save-dev

API

getRelatedTests

find all test files related to a component file

getRelatedTests source code

runRelatedTests

retrieves all the tests related to a componnet file

runRelatedTests source code

findJestConfig

findJestConfig source code

runTests

single test file execution

runTests source code

runProjectTests

run tests within the same project (jest config file)

runProjectTests source code

properties

NameTypeDescription
testFiles*string[]related test files to execute
projectFolder*stringthe folder with jest configuration or package.json
relativeFolderstringif supplied, this is the folder from which to report the file names relative to for example this could be the folder where the tested component resides
options*Partial<Arguments<Partial<{ all: boolean; automock: boolean; bail: number | boolean; cache: boolean; cacheDirectory: string; changedFilesWithAncestor: boolean; changedSince: string; ci: boolean; clearCache: boolean; ... 77 more ...; watchPathIgnorePatterns: string[]; }>>>jest options. Can provide collectCoverageOnlyFrom to limit the files coverage is collected from
4.0.3

2 years ago

3.11.0

3 years ago

3.8.0

3 years ago

3.10.0

3 years ago

3.7.0

3 years ago

3.13.0

3 years ago

3.10.3

3 years ago

3.12.0

3 years ago

3.10.2

3 years ago

3.11.4

3 years ago

3.14.0

3 years ago

3.11.3

3 years ago

3.14.3

3 years ago

3.8.2

3 years ago

3.14.2

3 years ago

3.9.0

3 years ago

3.14.5

3 years ago

3.14.6

3 years ago

3.6.3

3 years ago

3.6.2

3 years ago

3.6.0

3 years ago

3.5.0

3 years ago