Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 6, 2025
1 parent 32cc9c6 commit c64fd7f
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,17 @@ describe('required server files', () => {
;(process.env.TURBOPACK ? it.skip : it)(
'should output middleware correctly',
async () => {
// eslint-disable-next-line jest/no-standalone-expect
expect(
await fs.pathExists(
join(next.testDir, 'standalone/.next/server/edge-runtime-webpack.js')
)
).toBe(true)
if (!process.env.TEST_NODE_MIDDLEWARE) {
// eslint-disable-next-line jest/no-standalone-expect
expect(
await fs.pathExists(
join(
next.testDir,
'standalone/.next/server/edge-runtime-webpack.js'
)
)
).toBe(true)
}
// eslint-disable-next-line jest/no-standalone-expect
expect(
await fs.pathExists(
Expand Down

0 comments on commit c64fd7f

Please # to comment.