You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hitting the following issue when running jest with code coverage:
Running coverage on untested files...Failed to collect coverage from components
/AppFooter.vue
ERROR: Unexpected token u in JSON at position 0
STACK: SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at compileTypescript (src/node_modules/vue-jest/lib/compilers/typescript-compiler.js:67:44)
at processScript (src/node_modules/vue-jest/lib/process.js:22:12)
at Object.module.exports [as process] (src/node_modules/vue-jest/lib/process.js:71:18)
at ScriptTransformer.transformSource (/node_modules/jest-runtime/build/script_transformer.js:229:35)
at exports.default (/node_modules/jest-cli/build/generate_empty_coverage.js:37:5)
at Object.worker (/node_modules/jest-cli/build/reporters/coverage_worker.js:39:291)
at execMethod (/node_modules/jest-worker/build/child.js:92:29)
at process.on (/node_modules/jest-worker/build/child.js:42:7)
at emitTwo (events.js:126:13)
typescript-compiler.js is failing JSON.parse
this is the component
<template>
<footer class="page-footer center-on-small-only">
<b-container fluid>
</b-container>
</footer>
</template>
<script lang="ts">
// @ts-ignore
import Component from 'nuxt-class-component'
import Vue from 'vue'
@Component({})
export default class AppFooter extends Vue {
}
The text was updated successfully, but these errors were encountered:
I'm hitting the following issue when running jest with code coverage:
Running coverage on untested files...Failed to collect coverage from components
/AppFooter.vue
ERROR: Unexpected token u in JSON at position 0
STACK: SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at compileTypescript (src/node_modules/vue-jest/lib/compilers/typescript-compiler.js:67:44)
at processScript (src/node_modules/vue-jest/lib/process.js:22:12)
at Object.module.exports [as process] (src/node_modules/vue-jest/lib/process.js:71:18)
at ScriptTransformer.transformSource (/node_modules/jest-runtime/build/script_transformer.js:229:35)
at exports.default (/node_modules/jest-cli/build/generate_empty_coverage.js:37:5)
at Object.worker (/node_modules/jest-cli/build/reporters/coverage_worker.js:39:291)
at execMethod (/node_modules/jest-worker/build/child.js:92:29)
at process.on (/node_modules/jest-worker/build/child.js:42:7)
at emitTwo (events.js:126:13)
typescript-compiler.js
is failingJSON.parse
this is the component
The text was updated successfully, but these errors were encountered: