mirror of
https://github.com/actions/labeler
synced 2026-05-13 01:21:08 +02:00
build
This commit is contained in:
10
node_modules/jest-snapshot/build/inline_snapshots.js
generated
vendored
10
node_modules/jest-snapshot/build/inline_snapshots.js
generated
vendored
@@ -154,7 +154,15 @@ const groupSnapshotsByFrame = groupSnapshotsBy(({frame: {line, column}}) =>
|
||||
const groupSnapshotsByFile = groupSnapshotsBy(({frame: {file}}) => file);
|
||||
|
||||
const indent = (snapshot, numIndents, indentation) => {
|
||||
const lines = snapshot.split('\n');
|
||||
const lines = snapshot.split('\n'); // Prevent re-identation of inline snapshots.
|
||||
|
||||
if (
|
||||
lines.length >= 2 &&
|
||||
lines[1].startsWith(indentation.repeat(numIndents + 1))
|
||||
) {
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
return lines
|
||||
.map((line, index) => {
|
||||
if (index === 0) {
|
||||
|
||||
Reference in New Issue
Block a user