Skip to content

test-runner: global after not working #48230

Description

@darky

Version

20.2.0

Platform

Linux 6.3.3-arch1-1 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

node --test test.js

const { before, after, test } = require('node:test')

before(() => console.log('before'))
after(() => console.log('after'))

test('test', () => console.log('test'))

How often does it reproduce? Is there a required condition?

always

What is the expected behavior? Why is that the expected behavior?

Expect printing after on stdout

What do you see instead?

Only see before and test printing on stdout

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions