Skip to content

Commit

Permalink
chore: make crwa e2e test work across branches (#10437)
Browse files Browse the repository at this point in the history
On main we run CI on every pull request. On next, we run it on every
push to the next branch. This gives whoever's doing release confidence
that cherry picking was done correctly.

There's one CRWA test that doesn't translate across branches because
it's a snapshot of the package's version. See
https://github.com/redwoodjs/redwood/actions/runs/8607313332. This PR
updates that test so that it checks that the version string matches a
RegExp instead of a snapshot.
  • Loading branch information
jtoar committed Apr 10, 2024
1 parent 3252de7 commit 03896dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/create-redwood-app/tests/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ describe('create-redwood-app', () => {
const p = await $`yarn create-redwood-app --version`

expect(p.exitCode).toEqual(0)
expect(p.stdout).toMatchInlineSnapshot(`
"7.0.0
[?25l[?25h"
`)
expect(p.stdout).toMatch(/\d+\.\d+\.\d+/)
expect(p.stderr).toMatchInlineSnapshot(`"[?25l[?25h"`)
})

Expand Down

0 comments on commit 03896dd

Please sign in to comment.