Skip to content

Commit 7f18edc

Browse files
committed
tmp: debug
1 parent 357779b commit 7f18edc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

integrations/upgrade/upgrade-errors.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { stripVTControlCharacters } from 'node:util'
22
import { css, html, js, json, test } from '../utils'
33

4-
test(
4+
test.only(
55
'upgrades half-upgraded v3 project to v4 (pnpm)',
66
{
77
fs: {
@@ -34,20 +34,25 @@ test(
3434
},
3535
async ({ exec, expect }) => {
3636
// Ensure we are in a git repo
37-
await exec('git init')
38-
await exec('git add --all')
39-
await exec('git commit -m "before migration" --allow-empty')
37+
// await exec('git init')
38+
// await exec('git add --all')
39+
// await exec('git commit -m "before migration" --allow-empty')
4040

4141
// Fully upgrade to v4
42+
console.log('[START] Upgrade')
4243
await exec('pnpm exec upgrade')
44+
console.log('[END] Upgrade')
4345

4446
// Undo all changes to the current repo. This will bring the repo back to a
4547
// v3 state, but the `node_modules` will now have v4 installed.
48+
console.log('[START] Clean git')
4649
await exec('git reset --hard')
4750
await exec('git clean -df')
51+
console.log('[END] Clean git')
4852

4953
// Re-running the upgrade should result in an error
5054
return expect(() => {
55+
console.log('[START] Upgrade again')
5156
return exec('pnpm exec upgrade', {}, { ignoreStdErr: true }).catch((e) => {
5257
// Replacing the current version with a hardcoded `v4` to make it stable
5358
// when we release new minor/patch versions.

0 commit comments

Comments
 (0)