testing-library / vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
http://testing-library.com/vue
MIT License
1.08k stars 110 forks source link

Quick question: Does this support <script lang="ts">? #204

Closed TheJoeSchr closed 3 years ago

TheJoeSchr commented 3 years ago

If yes, do I need to install an additional compiler or bundler for that? I'm using Nuxt, just for completeness sake

afontcu commented 3 years ago

Hi,

Vue Testing Lib is only a wrapper on top of Vue Test Utils – and they both leverage whatever testing config you use. If your setup allows you to parse&test TS-based components (that is, using vue-jest and ts-jest and whatnot), then Vue Testing Library should work just fine 👍

TheJoeSchr commented 3 years ago

Thank you! On Fri, 29 Jan 2021 11:43:57 +0100, "Adrià Fontcuberta" notifications@github.com said:

Hi,

Vue Testing Lib is only a wrapper on top of Vue Test Utils – that is, it leverages whatever testing config you use. If your setup allows you to parse&test TS-based components (that is, using vue-jest and ts-jest and whatnot), then Vue Testing Library should work just fine 👍

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/testing-library/vue-testing-library/issues/204#issuecomment-769727793