Skip to content

Commit 41bfab8

Browse files
authored
test: don't reset workspace when running E2E tests (#7122)
The E2E test script unexpectedly runs a `git checkout .` on the CLI repository. If you run it locally and have any uncommitted changes, oops! It just discarded your work. #7119 removes the `package.json#scripts` pre-publish mangling that we used to do, which is ostensibly why we needed this in the first place.
1 parent 075819b commit 41bfab8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/e2e/setup.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ export const setup = async () => {
134134
cwd: rootDir,
135135
})
136136

137-
// Reset the workspace, as npm publish does patch package.json etc
138-
await execa('git', ['checkout', '.'], { cwd: rootDir })
139137
await execa('npm', ['install', '--no-audit'], { cwd: rootDir })
140138

141139
console.log(`------------------------------------------

0 commit comments

Comments
 (0)