Skip to content

Commit

Permalink
Turbopack build: Skip webpack specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 9, 2024
1 parent 0eea1be commit 5411870
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions test/integration/gsp-build-errors/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ describe('GSP build errors', () => {
'production mode',
() => {
afterEach(() => fs.remove(pagesDir))

it('should fail build from module not found', async () => {
await writePage(`
;(process.env.TURBOPACK ? it.skip : it)(
'should fail build from module not found',
async () => {
await writePage(`
__non_webpack_require__('a-cool-module')
export function getStaticProps() {
Expand All @@ -32,10 +33,13 @@ describe('GSP build errors', () => {
return null
}
`)
const { stderr, code } = await nextBuild(appDir, [], { stderr: true })
expect(code).toBe(1)
expect(stderr).toContain('a-cool-module')
})
const { stderr, code } = await nextBuild(appDir, [], { stderr: true })
// eslint-disable-next-line jest/no-standalone-expect
expect(code).toBe(1)
// eslint-disable-next-line jest/no-standalone-expect
expect(stderr).toContain('a-cool-module')
}
)

it('should fail build from ENOENT in getStaticProps', async () => {
await writePage(`
Expand Down
4 changes: 2 additions & 2 deletions test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11026,10 +11026,10 @@
"GSP build errors production mode should handle non-serializable error in getStaticPaths",
"GSP build errors production mode should handle non-serializable error in getStaticProps"
],
"failed": [
"failed": [],
"pending": [
"GSP build errors production mode should fail build from module not found"
],
"pending": [],
"flakey": [],
"runtimeError": false
},
Expand Down

0 comments on commit 5411870

Please sign in to comment.