1// Flags: --test-only --test-name-pattern=enabled 2'use strict'; 3const common = require('../../../common'); 4const { test } = require('node:test'); 5 6test('enabled and only', { only: true }, common.mustCall(async (t) => { 7 await t.test('enabled', common.mustCall()); 8 await t.test('disabled but parent not', common.mustCall()); 9})); 10 11test('enabled but not only', common.mustNotCall()); 12test('only does not match pattern', { only: true }, common.mustNotCall()); 13test('not only and does not match pattern', common.mustNotCall()); 14