Skip to content

Vue + Jest + Typescript Unexpected reserved word 'let' and Jest encountered an unexpected token #1358

Closed
@Maniumn

Description

@Maniumn

I get different errors by unit test for working code. With babel installed "Unexpected reserved word 'let'" and without babel installed "Jest encountered an unexpected token". What do I do wrong?

Version

1.0.0-beta.29

Reproduction links

https://github.com/Maniumn/vue-typescript-babel-unit-test
https://github.com/Maniumn/vue-typescript-no-babel-unit-test

Steps to reproduce

git clone
npm i
npm run test:unit

What is expected?

Test passed

What is actually happening?

Errors: Unexpected reserved word 'let' and Jest encountered an unexpected token

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions