From f847e8aaeb80aaa8b37da15d35bb8418afee2d34 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Thu, 24 Feb 2022 09:00:51 +0100 Subject: [PATCH] snaps --- .../__snapshots__/coverageReport.test.ts.snap | 120 +++++++++--------- .../coverageWithoutTransform.test.ts.snap | 12 +- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/e2e/__tests__/__snapshots__/coverageReport.test.ts.snap b/e2e/__tests__/__snapshots__/coverageReport.test.ts.snap index 517ac85832d8..ce6902fd9f3d 100644 --- a/e2e/__tests__/__snapshots__/coverageReport.test.ts.snap +++ b/e2e/__tests__/__snapshots__/coverageReport.test.ts.snap @@ -43,21 +43,21 @@ All files | 87.5 | 100 | 50 | 100 | exports[`does not output coverage report when html is requested 1`] = `""`; exports[`generates coverage when using the testRegex config param 1`] = ` -"-------------------------------------|---------|----------|---------|---------|------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --------------------------------------|---------|----------|---------|---------|------------------- -All files | 60 | 0 | 50 | 60 | - coverage-report | 47.36 | 0 | 25 | 50 | - file.js | 100 | 100 | 100 | 100 | - notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19 - otherFile.js | 100 | 100 | 100 | 100 | - sum.js | 87.5 | 100 | 50 | 100 | - sumDependency.js | 0 | 0 | 0 | 0 | 8-12 - coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | - coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | --------------------------------------|---------|----------|---------|---------|-------------------" +"-------------------|---------|----------|---------|---------|------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +-------------------|---------|----------|---------|---------|------------------- +All files | 60 | 0 | 50 | 60 | + coverage-report | 47.36 | 0 | 25 | 50 | + file.js | 100 | 100 | 100 | 100 | + ...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19 + otherFile.js | 100 | 100 | 100 | 100 | + sum.js | 87.5 | 100 | 50 | 100 | + sumDependency.js | 0 | 0 | 0 | 0 | 8-12 + ...d-duplicates/a | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | + ...d-duplicates/b | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | +-------------------|---------|----------|---------|---------|-------------------" `; exports[`json reporter printing with --coverage 1`] = ` @@ -69,21 +69,21 @@ Ran all test suites." `; exports[`outputs coverage report 1`] = ` -"-------------------------------------|---------|----------|---------|---------|------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --------------------------------------|---------|----------|---------|---------|------------------- -All files | 60 | 0 | 50 | 60 | - coverage-report | 47.36 | 0 | 25 | 50 | - file.js | 100 | 100 | 100 | 100 | - notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19 - otherFile.js | 100 | 100 | 100 | 100 | - sum.js | 87.5 | 100 | 50 | 100 | - sumDependency.js | 0 | 0 | 0 | 0 | 8-12 - coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | - coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | --------------------------------------|---------|----------|---------|---------|-------------------" +"-------------------|---------|----------|---------|---------|------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +-------------------|---------|----------|---------|---------|------------------- +All files | 60 | 0 | 50 | 60 | + coverage-report | 47.36 | 0 | 25 | 50 | + file.js | 100 | 100 | 100 | 100 | + ...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19 + otherFile.js | 100 | 100 | 100 | 100 | + sum.js | 87.5 | 100 | 50 | 100 | + sumDependency.js | 0 | 0 | 0 | 0 | 8-12 + ...d-duplicates/a | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | + ...d-duplicates/b | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | +-------------------|---------|----------|---------|---------|-------------------" `; exports[`outputs coverage report when text and text-summary is requested 1`] = ` @@ -94,39 +94,39 @@ Branches : 0% ( 0/4 ) Functions : 50% ( 3/6 ) Lines : 60% ( 12/20 ) ================================================================================ --------------------------------------|---------|----------|---------|---------|------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --------------------------------------|---------|----------|---------|---------|------------------- -All files | 60 | 0 | 50 | 60 | - coverage-report | 47.36 | 0 | 25 | 50 | - file.js | 100 | 100 | 100 | 100 | - notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19 - otherFile.js | 100 | 100 | 100 | 100 | - sum.js | 87.5 | 100 | 50 | 100 | - sumDependency.js | 0 | 0 | 0 | 0 | 8-12 - coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | - coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | --------------------------------------|---------|----------|---------|---------|-------------------" +-------------------|---------|----------|---------|---------|------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +-------------------|---------|----------|---------|---------|------------------- +All files | 60 | 0 | 50 | 60 | + coverage-report | 47.36 | 0 | 25 | 50 | + file.js | 100 | 100 | 100 | 100 | + ...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19 + otherFile.js | 100 | 100 | 100 | 100 | + sum.js | 87.5 | 100 | 50 | 100 | + sumDependency.js | 0 | 0 | 0 | 0 | 8-12 + ...d-duplicates/a | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | + ...d-duplicates/b | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | +-------------------|---------|----------|---------|---------|-------------------" `; exports[`outputs coverage report when text is requested 1`] = ` -"-------------------------------------|---------|----------|---------|---------|------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --------------------------------------|---------|----------|---------|---------|------------------- -All files | 60 | 0 | 50 | 60 | - coverage-report | 47.36 | 0 | 25 | 50 | - file.js | 100 | 100 | 100 | 100 | - notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8-19 - otherFile.js | 100 | 100 | 100 | 100 | - sum.js | 87.5 | 100 | 50 | 100 | - sumDependency.js | 0 | 0 | 0 | 0 | 8-12 - coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | - coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | - identical.js | 100 | 100 | 100 | 100 | --------------------------------------|---------|----------|---------|---------|-------------------" +"-------------------|---------|----------|---------|---------|------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +-------------------|---------|----------|---------|---------|------------------- +All files | 60 | 0 | 50 | 60 | + coverage-report | 47.36 | 0 | 25 | 50 | + file.js | 100 | 100 | 100 | 100 | + ...nTestSuite.js | 0 | 0 | 0 | 0 | 8-19 + otherFile.js | 100 | 100 | 100 | 100 | + sum.js | 87.5 | 100 | 50 | 100 | + sumDependency.js | 0 | 0 | 0 | 0 | 8-12 + ...d-duplicates/a | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | + ...d-duplicates/b | 100 | 100 | 100 | 100 | + identical.js | 100 | 100 | 100 | 100 | +-------------------|---------|----------|---------|---------|-------------------" `; exports[`outputs coverage report when text-summary is requested 1`] = ` diff --git a/e2e/__tests__/__snapshots__/coverageWithoutTransform.test.ts.snap b/e2e/__tests__/__snapshots__/coverageWithoutTransform.test.ts.snap index 3c71d5f02fe0..a473f106dc5a 100644 --- a/e2e/__tests__/__snapshots__/coverageWithoutTransform.test.ts.snap +++ b/e2e/__tests__/__snapshots__/coverageWithoutTransform.test.ts.snap @@ -1,10 +1,10 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`produces code coverage for uncovered files without transformer 1`] = ` -"---------------------|---------|----------|---------|---------|------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------|---------|----------|---------|---------|------------------- -All files | 0 | 100 | 0 | 0 | - some-random-file.js | 0 | 100 | 0 | 0 | 8-10 ----------------------|---------|----------|---------|---------|-------------------" +"-------------------|---------|----------|---------|---------|------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +-------------------|---------|----------|---------|---------|------------------- +All files | 0 | 100 | 0 | 0 | + ...random-file.js | 0 | 100 | 0 | 0 | 8-10 +-------------------|---------|----------|---------|---------|-------------------" `;