https://github.com/foxbunny/wallaby-case
MInimal demo case for Wallaby issue 1306
https://github.com/foxbunny/wallaby-case
Last synced: 3 months ago
JSON representation
MInimal demo case for Wallaby issue 1306
- Host: GitHub
- URL: https://github.com/foxbunny/wallaby-case
- Owner: foxbunny
- Created: 2017-09-17T08:32:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-17T13:28:26.000Z (over 7 years ago)
- Last Synced: 2025-01-26T01:32:44.511Z (4 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example: Wallaby with TypeScript/Jest using TSX
Minimal demo for the Wallaby [issue #1306](https://github.com/wallabyjs/public/issues/1306).
## The issue
When used with Wallaby.js 1.0.59, this setup should reproduce the following
error in the `Wallaby.js Tests` panel in VS Code (1.16.1):```
TypeError: Object prototype may only be an Object or null: undefined
at Object. src/Index.test.ts:1
```This is most likely referring to the following code:
```tsx
@Component
class Index extends Vue { // <-- this line
public render(createElement: CreateElement): VNode | null {
```## Differences from the original setup
In the original setup, the error would point to the `class` line in the module
that's being tested. In this setup, it points to the `import` statement in the
test module.In this setup, the Wallaby.js status indicator shows 10 tests passing, whereas
in the original setup, it always shows 0 passing. Either way, it does not match
what Jest shows when run from the CLI.