Skip to content

plone.staticresources release contains multiple package.json files that are picked up by Jest #73

@tisto

Description

@tisto

When running Jest (JS test runner) tests on a code-base with Plone, it picks up plone.staticresource files automatically:

    The name `react` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these:
      * `/home/iflameing/Documents/github/volto/api/eggs/plone.staticresources-1.2.1-py3.6.egg/plone/staticresources/static/components/react/npm-react/package.json` (package)
      * `/home/iflameing/Documents/github/volto/api/eggs/plone.staticresources-1.2.1-py3.6.egg/plone/staticresources/static/components/react/src/package.json` (package)

Is it possible to exclude package.json files from the releases via MANIFEST.in. IMHO those files do not belong into a release. Though, TBH I have no idea what plone.staticresources does or how it works. :/

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