yellow diff in jest 是什么意思
What meaning yellow diff in jest
test('transform', () => {
const code = [
...
' write (i < 10) do',
...
].join('\n')
expect(transform(code)).toBe([
...
' while (i < 10) { ',
...
].join('\n'))
})
Image with yelloc diff
这两行对我来说是相同的
意思是小差异,解决方案
test('transform', () => {
const code = [
...
' write (i < 10) do',
...
].join('\n')
expect(transform(code)).toBe([
...
' while (i < 10) { ',
...
''
].join('\n'))
})
参考文献
What does "@@ -1 +1 @@" mean in Git's diff output?
test('transform', () => {
const code = [
...
' write (i < 10) do',
...
].join('\n')
expect(transform(code)).toBe([
...
' while (i < 10) { ',
...
].join('\n'))
})
Image with yelloc diff
这两行对我来说是相同的
意思是小差异,解决方案
test('transform', () => {
const code = [
...
' write (i < 10) do',
...
].join('\n')
expect(transform(code)).toBe([
...
' while (i < 10) { ',
...
''
].join('\n'))
})
参考文献 What does "@@ -1 +1 @@" mean in Git's diff output?