Skip to content

test runner does not pass cli flags to test files when running --test #43941

Closed
@MoLow

Description

for example, running node --loader ts-node/esm --test a.test.ts will fail:

/// a.test.ts

import { test } from 'node:test'

test(async () => {
	const a: any = {};
});

the challenge is that each test file spawns a new process

Activity

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

Metadata

Assignees

No one assigned

    Labels

    loadersIssues and PRs related to ES module loaderstest_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