Unverified Commit b0d36efb authored by Steven's avatar Steven Committed by GitHub

Move some img tests out of serverless mode (#32620)

These tests were only running against serverless mode instead of all modes so I moved it up into the `runTests()` helper
parent b58a3f0b
...@@ -862,43 +862,6 @@ function runTests(mode) { ...@@ -862,43 +862,6 @@ function runTests(mode) {
} }
}) })
} }
}
describe('Image Component Tests', () => {
describe('dev mode', () => {
beforeAll(async () => {
appPort = await findPort()
app = await launchApp(appDir, appPort)
})
afterAll(async () => {
await killApp(app)
})
runTests('dev')
})
describe('server mode', () => {
beforeAll(async () => {
await nextBuild(appDir)
appPort = await findPort()
app = await nextStart(appDir, appPort)
})
afterAll(async () => {
await killApp(app)
})
runTests('server')
})
describe('serverless mode', () => {
beforeAll(async () => {
await nextBuild(appDir)
appPort = await findPort()
app = await nextStart(appDir, appPort)
})
afterAll(async () => {
await killApp(app)
})
it('should have blurry placeholder when enabled', async () => { it('should have blurry placeholder when enabled', async () => {
const html = await renderViaHTTP(appPort, '/blurry-placeholder') const html = await renderViaHTTP(appPort, '/blurry-placeholder')
...@@ -975,6 +938,43 @@ describe('Image Component Tests', () => { ...@@ -975,6 +938,43 @@ describe('Image Component Tests', () => {
} }
} }
}) })
}
describe('Image Component Tests', () => {
describe('dev mode', () => {
beforeAll(async () => {
appPort = await findPort()
app = await launchApp(appDir, appPort)
})
afterAll(async () => {
await killApp(app)
})
runTests('dev')
})
describe('server mode', () => {
beforeAll(async () => {
await nextBuild(appDir)
appPort = await findPort()
app = await nextStart(appDir, appPort)
})
afterAll(async () => {
await killApp(app)
})
runTests('server')
})
describe('serverless mode', () => {
beforeAll(async () => {
await nextBuild(appDir)
appPort = await findPort()
app = await nextStart(appDir, appPort)
})
afterAll(async () => {
await killApp(app)
})
runTests('serverless') runTests('serverless')
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment