-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily disable app dir export integration test (#48291)
As the integration tests are keeping failed on canary, turns out that the require hook didn't set up properly so when running the app-dir-export integration test it breaks others. Will re-enable it once migrated to e2e tests x-ref: https://github.com/vercel/next.js/actions/runs/4668919790/jobs/8266728783?pr=48252#step:6:149 x-ref: https://github.com/vercel/next.js/actions/runs/4668707070/jobs/8266215431?pr=48252#step:6:325 x-ref: https://github.com/vercel/next.js/actions/runs/4675947717/jobs/8281764592?pr=48276
- Loading branch information
Showing
8 changed files
with
86 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 17 additions & 15 deletions
32
test/integration/app-dir-export/test/dynamicapiroute-dev.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { runTests } from './utils' | ||
|
||
it.each([ | ||
{ dynamicApiRoute: 'undefined' }, | ||
{ dynamicApiRoute: "'error'" }, | ||
{ dynamicApiRoute: "'force-static'" }, | ||
{ | ||
dynamicApiRoute: "'force-dynamic'", | ||
expectedErrMsg: | ||
'export const dynamic = "force-dynamic" on page "/api/json" cannot be used with "output: export".', | ||
}, | ||
])( | ||
'should work in dev with dynamicApiRoute $dynamicApiRoute', | ||
async ({ dynamicApiRoute, expectedErrMsg }) => { | ||
await runTests({ isDev: true, dynamicApiRoute, expectedErrMsg }) | ||
} | ||
) | ||
describe.skip('dynamic api route dev', () => { | ||
it.each([ | ||
{ dynamicApiRoute: 'undefined' }, | ||
{ dynamicApiRoute: "'error'" }, | ||
{ dynamicApiRoute: "'force-static'" }, | ||
{ | ||
dynamicApiRoute: "'force-dynamic'", | ||
expectedErrMsg: | ||
'export const dynamic = "force-dynamic" on page "/api/json" cannot be used with "output: export".', | ||
}, | ||
])( | ||
'should work in dev with dynamicApiRoute $dynamicApiRoute', | ||
async ({ dynamicApiRoute, expectedErrMsg }) => { | ||
await runTests({ isDev: true, dynamicApiRoute, expectedErrMsg }) | ||
} | ||
) | ||
}) |
32 changes: 17 additions & 15 deletions
32
test/integration/app-dir-export/test/dynamicapiroute-prod.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { runTests } from './utils' | ||
|
||
it.each([ | ||
{ dynamicApiRoute: 'undefined' }, | ||
{ dynamicApiRoute: "'error'" }, | ||
{ dynamicApiRoute: "'force-static'" }, | ||
{ | ||
dynamicApiRoute: "'force-dynamic'", | ||
expectedErrMsg: | ||
'export const dynamic = "force-dynamic" on page "/api/json" cannot be used with "output: export".', | ||
}, | ||
])( | ||
'should work in prod with dynamicApiRoute $dynamicApiRoute', | ||
async ({ dynamicApiRoute, expectedErrMsg }) => { | ||
await runTests({ isDev: false, dynamicApiRoute, expectedErrMsg }) | ||
} | ||
) | ||
describe.skip('dynamic api route prod', () => { | ||
it.each([ | ||
{ dynamicApiRoute: 'undefined' }, | ||
{ dynamicApiRoute: "'error'" }, | ||
{ dynamicApiRoute: "'force-static'" }, | ||
{ | ||
dynamicApiRoute: "'force-dynamic'", | ||
expectedErrMsg: | ||
'export const dynamic = "force-dynamic" on page "/api/json" cannot be used with "output: export".', | ||
}, | ||
])( | ||
'should work in prod with dynamicApiRoute $dynamicApiRoute', | ||
async ({ dynamicApiRoute, expectedErrMsg }) => { | ||
await runTests({ isDev: false, dynamicApiRoute, expectedErrMsg }) | ||
} | ||
) | ||
}) |
32 changes: 17 additions & 15 deletions
32
test/integration/app-dir-export/test/dynamicpage-dev.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { runTests } from './utils' | ||
|
||
it.each([ | ||
{ dynamicPage: 'undefined' }, | ||
{ dynamicPage: "'error'" }, | ||
{ dynamicPage: "'force-static'" }, | ||
{ | ||
dynamicPage: "'force-dynamic'", | ||
expectedErrMsg: | ||
'Page with `dynamic = "force-dynamic"` couldn\'t be rendered statically because it used `output: export`.', | ||
}, | ||
])( | ||
'should work in dev with dynamicPage $dynamicPage', | ||
async ({ dynamicPage, expectedErrMsg }) => { | ||
await runTests({ isDev: true, dynamicPage, expectedErrMsg }) | ||
} | ||
) | ||
describe.skip('dynamic page dev', () => { | ||
it.each([ | ||
{ dynamicPage: 'undefined' }, | ||
{ dynamicPage: "'error'" }, | ||
{ dynamicPage: "'force-static'" }, | ||
{ | ||
dynamicPage: "'force-dynamic'", | ||
expectedErrMsg: | ||
'Page with `dynamic = "force-dynamic"` couldn\'t be rendered statically because it used `output: export`.', | ||
}, | ||
])( | ||
'should work in dev with dynamicPage $dynamicPage', | ||
async ({ dynamicPage, expectedErrMsg }) => { | ||
await runTests({ isDev: true, dynamicPage, expectedErrMsg }) | ||
} | ||
) | ||
}) |
32 changes: 17 additions & 15 deletions
32
test/integration/app-dir-export/test/dynamicpage-prod.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { runTests } from './utils' | ||
|
||
it.each([ | ||
{ dynamicPage: 'undefined' }, | ||
{ dynadynamicPagemic: "'error'" }, | ||
{ dynamicPage: "'force-static'" }, | ||
{ | ||
dynamicPage: "'force-dynamic'", | ||
expectedErrMsg: | ||
'Page with `dynamic = "force-dynamic"` couldn\'t be rendered statically because it used `output: export`.', | ||
}, | ||
])( | ||
'should work in prod with dynamicPage $dynamicPage', | ||
async ({ dynamicPage, expectedErrMsg }) => { | ||
await runTests({ isDev: false, dynamicPage, expectedErrMsg }) | ||
} | ||
) | ||
describe.skip('dynamic page dev', () => { | ||
it.each([ | ||
{ dynamicPage: 'undefined' }, | ||
{ dynadynamicPagemic: "'error'" }, | ||
{ dynamicPage: "'force-static'" }, | ||
{ | ||
dynamicPage: "'force-dynamic'", | ||
expectedErrMsg: | ||
'Page with `dynamic = "force-dynamic"` couldn\'t be rendered statically because it used `output: export`.', | ||
}, | ||
])( | ||
'should work in prod with dynamicPage $dynamicPage', | ||
async ({ dynamicPage, expectedErrMsg }) => { | ||
await runTests({ isDev: false, dynamicPage, expectedErrMsg }) | ||
} | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
test/integration/app-dir-export/test/trailing-slash-dev.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { runTests } from './utils' | ||
|
||
it.each([{ trailingSlash: false }, { trailingSlash: true }])( | ||
"should work in dev with trailingSlash '$trailingSlash'", | ||
async ({ trailingSlash }) => { | ||
await runTests({ isDev: true, trailingSlash }) | ||
} | ||
) | ||
describe.skip('trailing slash dev', () => { | ||
it.each([{ trailingSlash: false }, { trailingSlash: true }])( | ||
"should work in dev with trailingSlash '$trailingSlash'", | ||
async ({ trailingSlash }) => { | ||
await runTests({ isDev: true, trailingSlash }) | ||
} | ||
) | ||
}) |
14 changes: 8 additions & 6 deletions
14
test/integration/app-dir-export/test/trailing-slash-start.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { runTests } from './utils' | ||
|
||
it.each([{ trailingSlash: false }, { trailingSlash: true }])( | ||
"should work in prod with trailingSlash '$trailingSlash'", | ||
async ({ trailingSlash }) => { | ||
await runTests({ isDev: false, trailingSlash }) | ||
} | ||
) | ||
describe.skip('trailing slash dev', () => { | ||
it.each([{ trailingSlash: false }, { trailingSlash: true }])( | ||
"should work in prod with trailingSlash '$trailingSlash'", | ||
async ({ trailingSlash }) => { | ||
await runTests({ isDev: false, trailingSlash }) | ||
} | ||
) | ||
}) |