Unverified Commit f38ddf9f authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update CNA test skipping (#44606)

Follow-up to https://github.com/vercel/next.js/pull/44577 ensures we
skip when not running these specifically

x-ref:
https://github.com/vercel/next.js/actions/runs/3848960975/jobs/6557471848
parent b451a7ee
......@@ -484,6 +484,7 @@ jobs:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN || secrets.GITHUB_TOKEN }}
NEXT_TEST_CNA: 1
steps:
- run: echo ${{needs.build.outputs.docsChange}}
......
......@@ -29,6 +29,11 @@ const run = (args: string[], options: execa.Options) =>
execa('node', [cli].concat(args), options)
describe('create next app', () => {
if (!process.env.NEXT_TEST_CNA) {
it('should skip when env is not set', () => {})
return
}
it('non-empty directory', async () => {
await useTempDir(async (cwd) => {
const projectName = 'non-empty-directory'
......
......@@ -18,6 +18,11 @@ import {
import { useTempDir } from '../../../test/lib/use-temp-dir'
describe('create-next-app templates', () => {
if (!process.env.NEXT_TEST_CNA) {
it('should skip when env is not set', () => {})
return
}
it('should prompt user to choose if --ts or --js is not provided', async () => {
useTempDir(async (cwd) => {
const projectName = 'choose-ts-js'
......@@ -100,6 +105,11 @@ describe('create-next-app templates', () => {
})
describe('create-next-app --experimental-app-dir', () => {
if (!process.env.NEXT_TEST_CNA) {
it('should skip when env is not set', () => {})
return
}
it('should create TS appDir projects with --ts', async () => {
await useTempDir(async (cwd) => {
const projectName = 'appdir-test'
......
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