Skip to content

Commit

Permalink
Skip serverless/serverless-trace target tests (vercel#41252)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored and Kikobeats committed Oct 24, 2022
1 parent b7fa48f commit 2a5a3c8
Show file tree
Hide file tree
Showing 58 changed files with 65 additions and 65 deletions.
2 changes: 1 addition & 1 deletion test/integration/404-page-custom-error/test/index.test.js
Expand Up @@ -71,7 +71,7 @@ describe('Default 404 Page with custom _error', () => {
runTests('server')
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
afterAll(async () => {
await fs.remove(nextConfig)
await killApp(app)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/404-page-ssg/test/index.test.js
Expand Up @@ -114,7 +114,7 @@ describe('404 Page Support SSG', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
afterAll(async () => {
await fs.writeFile(nextConfig, nextConfigContent)
await killApp(app)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/404-page/test/index.test.js
Expand Up @@ -92,7 +92,7 @@ describe('404 Page Support', () => {
runTests('server')
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfigContent = await fs.readFile(nextConfig, 'utf8')
await fs.writeFile(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/500-page/test/index.test.js
Expand Up @@ -85,7 +85,7 @@ describe('500 Page Support', () => {
runTests('server')
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfigContent = await fs.readFile(nextConfig, 'utf8')
await fs.writeFile(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/amphtml-ssg/test/index.test.js
Expand Up @@ -99,7 +99,7 @@ const runTests = (isDev = false) => {
}

describe('AMP SSG Support', () => {
describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/api-catch-all/test/index.test.js
Expand Up @@ -73,7 +73,7 @@ describe('API routes', () => {
runTests()
})

describe('Serverless support', () => {
describe.skip('Serverless support', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/api-support/test/index.test.js
Expand Up @@ -620,7 +620,7 @@ describe('API routes', () => {
runTests()
})

describe('Serverless support', () => {
describe.skip('Serverless support', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/app-tree/test/index.test.js
Expand Up @@ -69,7 +69,7 @@ describe('AppTree', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/async-modules/test/index.test.js
Expand Up @@ -131,7 +131,7 @@ describe('Async modules', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfig.replace('// target:', 'target:')
await nextBuild(appDir)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/auto-export-error-bail/test/index.test.js
Expand Up @@ -36,7 +36,7 @@ describe('Auto Export _error bail', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(() =>
fs.writeFile(
nextConfig,
Expand Down
Expand Up @@ -41,7 +41,7 @@ describe('Auto Export', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
origNextConfig = await fs.readFile(nextConfig, 'utf8')
await nextBuild(appDir)
Expand Down
Expand Up @@ -6,7 +6,7 @@ import { nextBuild } from 'next-test-utils'

const appDir = path.join(__dirname, '..')

describe('Auto Export Error Serverless', () => {
describe.skip('Auto Export Error Serverless', () => {
it('fails to emit the page', async () => {
const { stderr } = await nextBuild(appDir, [], {
stderr: true,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/auto-export-serverless/test/index.test.js
Expand Up @@ -8,7 +8,7 @@ const appDir = path.join(__dirname, '..')
let appPort
let app

describe('Auto Export Serverless', () => {
describe.skip('Auto Export Serverless', () => {
it('Refreshes query on mount', async () => {
await nextBuild(appDir)
appPort = await findPort()
Expand Down
Expand Up @@ -51,7 +51,7 @@ describe('production mode', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfig.replace('// target', 'target')
await nextBuild(appDir)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/bigint/test/index.test.js
Expand Up @@ -55,7 +55,7 @@ describe('bigint API route support', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/clean-distdir/test/index.test.js
Expand Up @@ -33,7 +33,7 @@ describe('Cleaning distDir', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfigContent = await fs.readFile(nextConfig, 'utf8')
await fs.writeFile(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/critical-css/test/index.test.js
Expand Up @@ -78,7 +78,7 @@ describe('CSS optimization for SSR apps', () => {
runTests()
})

describe('Font optimization for emulated serverless apps', () => {
describe.skip('Font optimization for emulated serverless apps', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/custom-error/test/index.test.js
Expand Up @@ -103,7 +103,7 @@ describe('Custom _error', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/custom-page-extension/test/index.test.js
Expand Up @@ -47,7 +47,7 @@ describe('Custom page extension', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
const nextConfig = new File(join(appDir, 'next.config.js'))
beforeAll(async () => {
nextConfig.replace('server', 'serverless')
Expand Down
4 changes: 2 additions & 2 deletions test/integration/custom-routes/test/index.test.js
Expand Up @@ -2426,7 +2426,7 @@ describe('Custom routes', () => {
})
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfigContent = await fs.readFile(nextConfigPath, 'utf8')
await fs.writeFile(
Expand Down Expand Up @@ -2454,7 +2454,7 @@ describe('Custom routes', () => {
runTests()
})

describe('raw serverless mode', () => {
describe.skip('raw serverless mode', () => {
beforeAll(async () => {
nextConfigContent = await fs.readFile(nextConfigPath, 'utf8')
await fs.writeFile(
Expand Down
Expand Up @@ -82,7 +82,7 @@ describe('Dynamic Optional Routing Root Fallback', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let origNextConfig

beforeAll(async () => {
Expand Down
Expand Up @@ -66,7 +66,7 @@ describe('Dynamic Optional Routing', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let origNextConfig

beforeAll(async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/dynamic-optional-routing/test/index.test.js
Expand Up @@ -314,7 +314,7 @@ describe('Dynamic Optional Routing', () => {
})
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let origNextConfig

beforeAll(async () => {
Expand All @@ -336,7 +336,7 @@ describe('Dynamic Optional Routing', () => {
runTests()
})

describe('raw serverless mode', () => {
describe.skip('raw serverless mode', () => {
let origNextConfig

beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/env-config/test/index.test.js
Expand Up @@ -385,7 +385,7 @@ describe('Env Config', () => {
runTests('server')
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let nextConfigContent = ''
const nextConfigPath = join(appDir, 'next.config.js')
const envFiles = [
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fallback-route-params/test/index.test.js
Expand Up @@ -65,7 +65,7 @@ describe('Fallback Dynamic Route Params', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
nextConfig.write(`
module.exports = {
Expand Down
Expand Up @@ -104,7 +104,7 @@ describe('Fetch polyfill with ky-universal', () => {
runTests()
})

describe('Serverless support', () => {
describe.skip('Serverless support', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fetch-polyfill/test/index.test.js
Expand Up @@ -123,7 +123,7 @@ describe('Fetch polyfill', () => {
runTests()
})

describe('Serverless support', () => {
describe.skip('Serverless support', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/font-optimization/test/index.test.js
Expand Up @@ -250,7 +250,7 @@ describe('Font Optimization', () => {
runTests()
})

describe('Font optimization for serverless apps', () => {
describe.skip('Font optimization for serverless apps', () => {
const origNextConfig = fs.readFileSync(nextConfig)

beforeAll(async () => {
Expand All @@ -272,7 +272,7 @@ describe('Font Optimization', () => {
runTests()
})

describe('Font optimization for emulated serverless apps', () => {
describe.skip('Font optimization for emulated serverless apps', () => {
const origNextConfig = fs.readFileSync(nextConfig)

beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/getinitialprops/test/index.test.js
Expand Up @@ -52,7 +52,7 @@ describe('getInitialProps', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await nextConfig.replace('// replace me', `target: 'serverless', `)
await nextBuild(appDir)
Expand Down
Expand Up @@ -29,7 +29,7 @@ const runTests = () => {
}

describe('getServerSideProps', () => {
describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.remove(join(appDir, '.next'))
await fs.writeFile(
Expand Down
Expand Up @@ -294,7 +294,7 @@ describe('ServerSide Props Preview Mode', () => {
runTests()
})

describe('Serverless Mode', () => {
describe.skip('Serverless Mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfigPath,
Expand All @@ -308,7 +308,7 @@ describe('ServerSide Props Preview Mode', () => {
runTests()
})

describe('Emulated Serverless Mode', () => {
describe.skip('Emulated Serverless Mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfigPath,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/gssp-pageProps-merge/test/index.test.js
Expand Up @@ -56,7 +56,7 @@ describe('pageProps GSSP conflict', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.writeFile(
nextConfig,
Expand Down
Expand Up @@ -505,7 +505,7 @@ describe('GS(S)P Redirect Support', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let server

beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/gssp-redirect/test/index.test.js
Expand Up @@ -542,7 +542,7 @@ describe('GS(S)P Redirect Support', () => {
})
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let server

beforeAll(async () => {
Expand Down
Expand Up @@ -5,7 +5,7 @@ import { nextBuild } from 'next-test-utils'

const appDir = path.join(__dirname, '..')

describe('Handle non-page in pages when target: serverless', () => {
describe.skip('Handle non-page in pages when target: serverless', () => {
it('Fails softly with descriptive error', async () => {
const { stderr } = await nextBuild(appDir, [], { stderr: true })

Expand Down
2 changes: 1 addition & 1 deletion test/integration/i18n-support-base-path/test/index.test.js
Expand Up @@ -72,7 +72,7 @@ describe('i18n Support basePath', () => {
runTests(ctx)
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.remove(join(appDir, '.next'))
nextConfig.replace('// target', 'target')
Expand Down
2 changes: 1 addition & 1 deletion test/integration/i18n-support-catchall/test/index.test.js
Expand Up @@ -250,7 +250,7 @@ describe('i18n Support Root Catch-all', () => {
runTests()
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.remove(join(appDir, '.next'))
nextConfig.replace('// target', 'target')
Expand Down
2 changes: 1 addition & 1 deletion test/integration/i18n-support/test/index.test.js
Expand Up @@ -89,7 +89,7 @@ describe('i18n Support', () => {
})
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await fs.remove(join(appDir, '.next'))
nextConfig.replace('// target', 'target')
Expand Down
Expand Up @@ -505,7 +505,7 @@ describe('Image Component basePath Tests', () => {
runTests('server')
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
let origConfig

beforeAll(async () => {
Expand Down
Expand Up @@ -1447,7 +1447,7 @@ describe('Image Component Tests', () => {
runTests('server')
})

describe('serverless mode', () => {
describe.skip('serverless mode', () => {
beforeAll(async () => {
await nextBuild(appDir)
appPort = await findPort()
Expand Down

0 comments on commit 2a5a3c8

Please sign in to comment.