Skip to content

Commit

Permalink
skip yarn install in --yes to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Jan 21, 2024
1 parent 8b8753d commit bc3437f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/create-redwood-app/tests/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ describe('create-redwood-app', () => {
expect(p.stderr).toMatchInlineSnapshot(`"[?25l[?25h"`)
})

test.skip('--yes, -y', async () => {
const p = await $`yarn create-redwood-app ./redwood-app --yes`
test('--yes, -y', async () => {
// Running `yarn install` in Jest test times out and the subsequent step,
// generating types, is also flakey since `yarn pack` seems to skip `.yarnrc.yml`
// which is necessary for configuring a proper install.
const p =
await $`yarn create-redwood-app ./redwood-app --no-yarn-install --yes`

expect(p.exitCode).toEqual(0)
expect(p.stdout).toMatchInlineSnapshot(`
Expand All @@ -66,10 +70,11 @@ describe('create-redwood-app', () => {
[?25h✔ Creating your Redwood app in ./redwood-app based on command line argument
✔ Using TypeScript based on command line flag
✔ Will initialize a git repo based on command line flag
✔ Will run yarn install based on command line flag
✔ Will not run yarn install based on command line flag
[?25l⠋ Creating project files
[?25h[?25l✔ Project files created
[?25h[?25l⠋ Initializing a git repo
[?25hℹ Skipped yarn install step
[?25l⠋ Initializing a git repo
[?25h[?25l✔ Initialized a git repo with commit message "Initial commit"
[?25h
Thanks for trying out Redwood!
Expand Down

0 comments on commit bc3437f

Please sign in to comment.