Skip to content

Fix failing test #154

Closed
Closed

Description

@zpao

If my name were test bot this would be an autogenerated task telling you that tests are failing after 32423a8 - https://travis-ci.org/facebook/react/builds/8680688

That's you @petehunt!

Activity

  1. ghost assigned on Jul 3, 2013
  2. petehunt commented on Jul 3, 2013

    @petehunt
    Contributor

    OK, the tests passed internally but not in open-source because dumpCache() is a no-op, so double DOM property injection is happening and throwing.

  3. ghost assigned on Jul 3, 2013
  4. benjamn commented on Jul 3, 2013

    @benjamn
    Contributor

    I have ideas.

    If we take the plunge of forking browserify, then a lot of things become possible. A proper mocking system would be relatively easy to implement if we could redefine browserify's implementation of require.

    But I don't think we have to fork browserify. Instead, it looks like we can transform our own source files during testing so that require("mock-modules") can manipulate their module.exports, swapping a mocked version of exports in and out as necessary. We can do this either in bin/jsx or using a browserify source transform. I prefer bin/jsx because then, in principle at least, mocking would work with any module packaging tool (i.e. it would not depend on the browserify interface).

    Need to investigate further, but I think this is really promising.

  5. added a commit that references this issue on Aug 13, 2019
  6. added a commit that references this issue on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions