Skip to content

RNTesterIntegrationTests: Fix testTimersTest failure #22695

@hramos

Description

@hramos

Help Wanted: Fix TimersTests

test_objc on Circle CI is red due to a failing integration test, TimersTest:

UI Test Activity: 
Assertion Failure: RCTTestRunner.m:233: failed: caught "NSInternalInconsistencyException", "RedBox errors: (
    "undefined is not an object (evaluating 'this.setTimeout')",
    "Unhandled JS Exception: undefined is not an object (evaluating 'this.setTimeout')"
)"

The test is defined in JavaScript at IntegrationTests/TimersTest.js, and is invoked by RNTesterIntegrationTests.

Steps to reproduce:

  1. Run yarn at the repository root.
  2. Open RNTester/RNTester.xcodeproj on Xcode 10.1.0.
  3. Build RNTester.
  4. Run tests (CMD+U) on an iPhone 6 simulator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help Wanted :octocat:Issues ideal for external contributors.Platform: iOSiOS applications.Resolution: LockedThis issue was locked by the bot.🔩Test InfrastructureTest infrastructure and continuous integration.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions