Skip to content

evaluate_promise has nothing to do with promises #2331

@king-of-poppk

Description

@king-of-poppk

It seems the goal of evaluate_promise is to group expect_output, expect_warning, expect_message. It does not seem to handle code that returns promises:

MRE:

test_that("it does not handle promises", {
  expect_snapshot(
    evaluate_promise(
      promises::promise_resolve(42)
    )
  )
})
...
Output
  $result
  <Promise [pending]>
...

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