Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #106 from TheSench/bugfix/handle-running-parameter…
Browse files Browse the repository at this point in the history
…ized-tests

Bugfix/handle running parameterized tests
  • Loading branch information
rossknudsen committed Jan 19, 2021
2 parents 5bc20ce + b468968 commit edf9c9a
Show file tree
Hide file tree
Showing 12 changed files with 2,141 additions and 109 deletions.
155 changes: 109 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@babel/traverse": "^7.7.4",
"@schemastore/package": "0.0.5",
"cosmiconfig": "^6.0.0",
"jest-editor-support": "^28.0.0",
"jest-editor-support": "^28.1.0",
"lodash": "^4.17.15",
"micromatch": "^4.0.2",
"semver": "^7.3.2",
Expand Down
4 changes: 2 additions & 2 deletions src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default class JestTestAdapter implements TestAdapter {
const testFilter = mapTestIdsToTestFilter(testsToRun);

// we emit events to notify which tests we are running.
const filteredTree = filterTree(project, testsToRun);
const filteredTree = filterTree(project, testsToRun, false);
emitTestRunningRootNode(filteredTree, eventEmitter);

// begin running the tests in Jest.
Expand All @@ -232,7 +232,7 @@ export default class JestTestAdapter implements TestAdapter {
const treeWithRuntime = mergeRuntimeResults(project, jestResponse.results.testResults);

// filter the tree
const filteredTreeWithRuntime = filterTree(treeWithRuntime, testsToRun);
const filteredTreeWithRuntime = filterTree(treeWithRuntime, testsToRun, true);

const testEvents = mapJestTestResultsToTestEvents(jestResponse, filteredTreeWithRuntime);
emitTestCompleteRootNode(filteredTreeWithRuntime, testEvents, eventEmitter);
Expand Down
Loading

0 comments on commit edf9c9a

Please sign in to comment.