Commit cb8ccd5c authored by Janka Uryga's avatar Janka Uryga

test: convert metadata-warnings/index.test.ts to nextTestSetup

parent 336019b8
import { createNextDescribe } from 'e2e-utils' import { nextTestSetup } from 'e2e-utils'
const METADATA_BASE_WARN_STRING = const METADATA_BASE_WARN_STRING =
'metadataBase property in metadata export is not set for resolving social open graph or twitter images,' 'metadataBase property in metadata export is not set for resolving social open graph or twitter images,'
createNextDescribe( describe('app dir - metadata missing metadataBase', () => {
'app dir - metadata missing metadataBase', const { next, isNextDev, skipped } = nextTestSetup({
{
files: __dirname, files: __dirname,
skipDeployment: true, skipDeployment: true,
}, })
({ next, isNextDev }) => {
if (skipped) {
return
}
// If it's start mode, we get the whole logs since they're from build process. // If it's start mode, we get the whole logs since they're from build process.
// If it's development mode, we get the logs after request // If it's development mode, we get the logs after request
function getCliOutput(logStartPosition: number) { function getCliOutput(logStartPosition: number) {
...@@ -56,5 +59,4 @@ createNextDescribe( ...@@ -56,5 +59,4 @@ createNextDescribe(
const output = next.cliOutput.slice(outputLength) const output = next.cliOutput.slice(outputLength)
expect(output).not.toContain('Unsupported metadata viewport') expect(output).not.toContain('Unsupported metadata viewport')
}) })
} })
)
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