-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue composition api #178
Labels
bug
Something isn't working
Comments
duplicate #96 (I think) |
4 tasks
iFaxity
added a commit
that referenced
this issue
Feb 17, 2024
…es (#180) * fix: add regex for vue SFC to prevent instrumenting style and templates Single file Components no longer have their html or css instrumented instead of their script Closes #96 #178 #89 * build: add prepare script to build the package when using a git version See https://stackoverflow.com/a/57829251 * build: fix dependencies' vulnerabilities run npm audit fix * build: bump devDependencies (patch version only) * fix: instrument both option and composition API * style: fix sonarlint issues * revert: reverted changes to dependencies and package.json Refs: 1e67efc, ea8fa18, 614a88a * style: changed to single quotes for strings --------- Co-authored-by: Hugo <[email protected]> Co-authored-by: Christian Norrman <[email protected]>
Hi @lukasbrzobohaty, Could you please try the new rc version released with #180 if this fixes your issue? |
Closing due to inactivity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have a some issue with instrument code by istanbul in project with vue and composition api.
When I build project then istanbul create three coverage functions with the same path in dist folder.
First function is corect, it is for code in
<script setup>
. Second function has empty coverage and it is for<template>
. The last one is for<style>
.Probably browser take only the last function with empty coverage. Then coverage don't work for these components.
First function:
Second function:
Third function:
Browser coverage:
Reproduction
https://github.com/lukasbrzobohaty/vite-istanbul
Steps to reproduce
npm install
npm run build
npm run start
window.__coverage__
in console and look to.../src/components/HelloWorld.vue
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: