Skip to content

Commit

Permalink
chore(test-result): remove deprecated sourcemap property (#10355)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Dec 7, 2020
1 parent 196e573 commit 09506a3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ export const runAndTransformResultsToJestFormat = async ({
numPassingTests,
numPendingTests,
numTodoTests,
sourceMaps: {},
testExecError,
testFilePath: testPath,
testResults: assertionResults,
Expand Down
1 change: 0 additions & 1 deletion packages/jest-core/src/ReporterDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default class ReporterDispatcher {
}

// Release memory if unused later.
testResult.sourceMaps = undefined;
testResult.coverage = undefined;
testResult.console = undefined;
}
Expand Down
1 change: 0 additions & 1 deletion packages/jest-test-result/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const buildFailureTestResult = (
unmatched: 0,
updated: 0,
},
sourceMaps: {},
testExecError: err,
testFilePath: testPath,
testResults: [],
Expand Down
4 changes: 0 additions & 4 deletions packages/jest-test-result/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ export type TestResult = {
unmatched: number;
updated: number;
};
// TODO - Remove in Jest 26
sourceMaps?: {
[sourcePath: string]: string;
};
testExecError?: SerializableError;
testFilePath: Config.Path;
testResults: Array<AssertionResult>;
Expand Down

0 comments on commit 09506a3

Please sign in to comment.