Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

import image in the project but failed in the unit testing #542

@LiKang6688

Description

@LiKang6688

Description

in a react project, do the unit testing, but failed when I import an image in the project.

Steps to Reproduce

  1. import a image in a project
    import cellLocked from '../../image/NR_Locked.png'; in a jsx file, such as selections.jsx
  2. import that jsx file in a .spec.jsx
    import * as withSelections from '../selections';
Actual behavior

Screenshot 2021-02-19 at 16 20 35

Environment

"@after-work.js/aw": "6.0.14",
"react": "^17.0.1",

Operating system
[ ] Windows
[x ] OSX
[ ] Linux

Versions

  • Node.js: v15.6.0
  • Webdriver:
  • Operating system: MacOS 10.15.7
  • [Other relevant versions]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions