Repository navigation
Commit 939d1da
fix(utils): fix re-export of copyTextToClipboard to allow jest spyOn
Live binding re-exports (export { default } from '...') create
non-configurable properties that jest.spyOn cannot redefine. Use
import + export default instead so the binding is writable.
Fixes DataTablesPane test: 'Should copy data table content correctly'
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent c7d0ef2 commit 939d1da
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments