Skip to content

Commit 02df9f5

Browse files
committed
Revert file lookup, and push chunk changes into markdown
1 parent 127edeb commit 02df9f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dangerfile.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ if (existsSync(diffPath)) {
99

1010
const uninterestingFiles = [".generated.d.ts", "globalThisBlockscopedProperties.types", "mappedTypeRecursiveInference.types"]
1111
const withoutKnownNormalFails = diffedFiles.filter(diff => {
12-
return uninterestingFiles.filter(suffix => diff.to && diff.to.endsWith(suffix)).length > 0
12+
return !uninterestingFiles.filter(suffix => diff.to && diff.to.endsWith(suffix)).length > 0
1313
})
1414

1515
const md = ["## Changed baselines from the TypeScript test suite"]
1616

1717
withoutKnownNormalFails.forEach(diff => {
1818
md.push(`#### ${diff.to || diff.from}}`)
19-
19+
2020
md.push("```diff")
2121
diff.chunks.forEach(chunk => {
2222
md.push(chunk.content)
23+
24+
chunk.changes.forEach(change => {
25+
md.push(change.content)
26+
})
2327
})
2428
md.push("```")
2529
})

0 commit comments

Comments
 (0)