Skip to content

Commit

Permalink
Rename test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 4, 2020
1 parent 4d58c67 commit 97ba5d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/integration/telemetry/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,21 @@ describe('Telemetry CLI', () => {
})

it('detects tests correctly for `next build`', async () => {
await fs.rename(
path.join(appDir, 'pages', 'hello.test.skip'),
path.join(appDir, 'pages', 'hello.test.js')
)
const { stderr } = await runNextCommand(['build', appDir], {
stderr: true,
env: {
NEXT_TELEMETRY_DEBUG: 1,
},
})
await fs.rename(
path.join(appDir, 'pages', 'hello.test.js'),
path.join(appDir, 'pages', 'hello.test.skip')
)

console.log(stderr)
expect(stderr).toMatch(/hasDunderPages.*?true/)
expect(stderr).toMatch(/hasTestPages.*?true/)
})
Expand Down

0 comments on commit 97ba5d0

Please sign in to comment.