Skip to content

t.context is null (not an object {}) in test.cb.before #1542

@niftylettuce

Description

@niftylettuce

@sindresorhus I think there is a bug with t.context being set to null as opposed to {} in test.cb.before scope.

test.cb.before(t => {
  console.log(t.context); // outputs `null`
});

Not sure if this is related #1340

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