Skip to content

Commit

Permalink
test: add skip_pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
avivkeller committed Apr 14, 2024
1 parent 122298b commit a8ce60d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/fixtures/test-runner/output/skip_pattern.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Flags: --test-skip-pattern=disabled --test-skip-pattern=/no/i
'use strict';
const common = require('../../../common');
const {
describe,
it,
test,
} = require('node:test');

test('top level test disabled', common.mustNotCall());
test('top level skipped test disabled', { skip: true }, common.mustNotCall());
test('top level skipped test enabled', { skip: true }, common.mustNotCall());
it('top level it enabled', common.mustCall());
it('top level it disabled', common.mustNotCall());
it.skip('top level skipped it disabled', common.mustNotCall());
it.skip('top level skipped it enabled', common.mustNotCall());
describe('top level describe never disabled', common.mustCall());
describe.skip('top level skipped describe disabled', common.mustNotCall());
describe.skip('top level skipped describe enabled', common.mustNotCall());
test('this will NOt call', common.mustNotCall());

0 comments on commit a8ce60d

Please sign in to comment.