Commit 0a0082b
committed
Add .npmrc and simplify test error assertion
Add a project .npmrc to work around VSCode ESLint plugin loading issues with pnpm (disables strict peer deps and hoists eslint plugins).
Update test/commitAndSync.test.ts to remove brittle error-class/assertion coupling: drop lodash omit and GitPullPushError imports and assert that the thrown error contains the expected authentication message using expect.objectContaining/expect.stringContaining instead of matching a constructed error object. This makes the test less fragile while preserving the restored remote URL assertion.1 parent 6fccfbb commit 0a0082b
2 files changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
| |||
0 commit comments