Skip to content

Honour Jest configuration in package.json #1317

@madflow

Description

@madflow

🌈 Feature

  • What is this feature?

Jest allows configuration entries like:

  "jest": {
    "testURL": "http://localhost",
    "setupTestFrameworkScriptFile": "<rootDir>/test/setup.js",
    "transform": {
      "^.+\\.(js|jsx)$": "babel-jest",
      "^(?!.*\\.(js|jsx|json)$)": "<rootDir>/test/fileTransform.js"
    }
  }

in the package.json file.

These configuration entries are ignored in codesandbox - leading to passing tests in a local copy - and failing tests in codesandbox.

  • How the feature should work?

It will read and process the "jest" property from the package.json file.

  • You have examples or an idea how it can be implemented?

This seems to be a server issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions