@babel/helper-transform-fixture-test-runner
Advanced tools
Comparing version 7.19.3 to 7.19.4
@@ -15,4 +15,2 @@ "use strict"; | ||
var _traceMapping = require("@jridgewell/trace-mapping"); | ||
var helpers = require("./helpers"); | ||
@@ -308,7 +306,7 @@ | ||
if (task.sourceMap) { | ||
if (opts.sourceMaps === true) { | ||
try { | ||
expect(result.map).toEqual(task.sourceMap); | ||
} catch (e) { | ||
if (!process.env.OVERWRITE || !task.sourceMapFile) throw e; | ||
if (!process.env.OVERWRITE && task.sourceMap) throw e; | ||
console.log(`Updated test file: ${task.sourceMapFile.loc}`); | ||
@@ -320,14 +318,2 @@ | ||
if (task.sourceMappings) { | ||
const consumer = new _traceMapping.TraceMap(result.map); | ||
task.sourceMappings.forEach(function (mapping) { | ||
const actual = mapping.original; | ||
const expected = (0, _traceMapping.originalPositionFor)(consumer, mapping.generated); | ||
expect({ | ||
line: expected.line, | ||
column: expected.column | ||
}).toEqual(actual); | ||
}); | ||
} | ||
if (execCode && resultExec) { | ||
@@ -418,3 +404,3 @@ return resultExec; | ||
if ("sourceMap" in task.options === false) { | ||
task.options.sourceMap = !!(task.sourceMappings || task.sourceMap); | ||
task.options.sourceMap = !!task.sourceMap; | ||
} | ||
@@ -421,0 +407,0 @@ |
{ | ||
"name": "@babel/helper-transform-fixture-test-runner", | ||
"version": "7.19.3", | ||
"version": "7.19.4", | ||
"description": "Transform test runner for @babel/helper-fixtures module", | ||
@@ -21,4 +21,3 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/helper-check-duplicate-nodes": "^7.18.6", | ||
"@babel/helper-fixtures": "^7.18.6", | ||
"@jridgewell/trace-mapping": "^0.3.8", | ||
"@babel/helper-fixtures": "^7.19.4", | ||
"quick-lru": "5.1.0" | ||
@@ -25,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
46127
372
- Removed@jridgewell/trace-mapping@^0.3.8