Skip to content

写单元测试时无法引入样式文件导致无法跑测试 #3405

@HomyeeKing

Description

@HomyeeKing
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-rc.4

Environment

Vue3 mac,chrome

Reproduction link

https://github.com/HomyeeKing/learn-test

Steps to reproduce

  • go to the /tests/unit
  • run npm run test:unit ant

What is expected?

at least can run the test, whether it is error or pass

What is actually happening?

throw SyntaxError: Cannot use import statement outside a module

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions