Skip to content

Commit

Permalink
Ensure Build Output Does Not Contain <buildId>
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jan 9, 2020
1 parent af82f32 commit 948348b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/build-output/test/index.test.js
Expand Up @@ -30,6 +30,7 @@ describe('Build Output', () => {
expect(stdout).not.toContain(' /_document')
expect(stdout).not.toContain(' /_app')
expect(stdout).not.toContain(' /_error')
expect(stdout).not.toContain('<buildId>')

expect(stdout).toContain('○ /')
})
Expand All @@ -55,6 +56,7 @@ describe('Build Output', () => {

expect(stdout).not.toContain(' /_document')
expect(stdout).not.toContain(' /_error')
expect(stdout).not.toContain('<buildId>')

expect(stdout).toContain(' /_app')
expect(stdout).toContain('○ /')
Expand Down Expand Up @@ -82,6 +84,7 @@ describe('Build Output', () => {

expect(stdout).not.toContain(' /_document')
expect(stdout).not.toContain(' /_error')
expect(stdout).not.toContain('<buildId>')

expect(stdout).toContain('○ /')
})
Expand All @@ -107,6 +110,7 @@ describe('Build Output', () => {

expect(stdout).not.toContain(' /_document')
expect(stdout).not.toContain(' /_app')
expect(stdout).not.toContain('<buildId>')

expect(stdout).toContain(' /_error')
expect(stdout).toContain('○ /')
Expand All @@ -126,6 +130,7 @@ describe('Build Output', () => {
stdout: true,
})
expect(stdout).toContain('○ /_error')
expect(stdout).not.toContain('<buildId>')
})

// This test is not really correct.
Expand All @@ -135,6 +140,7 @@ describe('Build Output', () => {
stdout: true,
})
expect(stdout).toContain('λ /_error')
expect(stdout).not.toContain('<buildId>')
})
})
})

0 comments on commit 948348b

Please sign in to comment.