Commit 50a681b
Fix pep723 test setup: stub require('fs-extra') instead of namespace wrapper
TypeScript's __importStar wraps CommonJS modules in a new object where
every property is a non-configurable sinon cannot stub them.getter
Stub the underlying require('fs-extra') object instead; the namespace
wrapper's getters delegate to it, so the stub is picked up by the
source-under-test transparently. All 7 pep723 tests now pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a01a406 commit 50a681b
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
0 commit comments