https://github.com/dubzzz/vitest-spy-bug-with-react
https://github.com/dubzzz/vitest-spy-bug-with-react
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dubzzz/vitest-spy-bug-with-react
- Owner: dubzzz
- License: mit
- Created: 2024-12-03T19:18:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-10T09:44:30.000Z (6 months ago)
- Last Synced: 2025-05-07T05:34:11.722Z (5 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
No bug in Vitest, the issue is mostly linked to the wrapper `forwardRef`.
Current status:
```txt
❯ test/stubs-default-class.spec.jsx (2 tests | 1 failed) 47ms
× stubs default class (not working) 31ms
→ Cannot add property updater, object is not extensible
✓ stubs default class (working)
✓ test/stubs-default.spec.jsx (1 test) 22ms
✓ test/stubs.spec.jsx (1 test) 22ms
✓ test/mocks-with-ref.spec.jsx (1 test) 24ms
✓ test/mocks-default.spec.jsx (1 test) 20ms
✓ test/mocks.spec.jsx (1 test) 21ms
✓ test/no-stubs-no-mocks.spec.jsx (1 test) 21ms
❯ test/stubs-with-ref.spec.jsx (1 test | 1 failed) 27ms
× stubs with ref 26ms
→ impl.apply is not a function
```