vuetify: [Bug Report][2.5.5] Vuetify and Jest are not working with TSX
Environment
Vuetify Version: 2.5.5 Vue Version: 2.6.12 Browsers: Chrome 91.0.4472.114 OS: Windows 10
Steps to reproduce
- yarn (install deps)
- yarn test (tests should fail)
Uncomment transformIgnorePatterns: ["node_modules/(?!(vuetify)/)"], line in jest.config.js to make tests pass.
Expected Behavior
Tests are passing without transformIgnorePatterns: ["node_modules/(?!(vuetify)/)"],
Actual Behavior
Tests are failing without transformIgnorePatterns: ["node_modules/(?!(vuetify)/)"],
Reproduction Link
https://github.com/Maxim-Mazurok/vue-jest-tsx-error-repro/tree/vuetify
Other comments
See also: https://github.com/wonderful-panda/vue-tsx-support/issues/78 which was fixed.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (18 by maintainers)
Commits related to this issue
- lib => es5 ? https://github.com/vuetifyjs/vuetify/issues/13841#issuecomment-868442254 — committed to Maxim-Mazurok/vue-jest-tsx-error-repro by Maxim-Mazurok 3 years ago
- moduleNameMapper https://github.com/vuetifyjs/vuetify/issues/13841#issuecomment-868447884 — committed to Maxim-Mazurok/vue-jest-tsx-error-repro by Maxim-Mazurok 3 years ago
- moduleNameMapper https://github.com/vuetifyjs/vuetify/issues/13841#issuecomment-868447884 — committed to Maxim-Mazurok/vue-jest-tsx-error-repro by Maxim-Mazurok 3 years ago
- Apply fix https://github.com/vuetifyjs/vuetify/issues/13841#issuecomment-868475397 — committed to Maxim-Mazurok/vue-jest-tsx-error-repro by Maxim-Mazurok 3 years ago
Oops
Ok that’s my bad looks like
/es5uses the same entry as the UMD build which doesn’t re-export components. It takes two maps to fix this: