◐ Shell
clean mode source ↗

test_runner: mark snapshot testing as stable · nodejs/node@8ff082c

1-

// Flags: --expose-internals --experimental-test-snapshots

1+

// Flags: --expose-internals

22

/* eslint-disable no-template-curly-in-string */

33

'use strict';

44

const common = require('../common');

@@ -299,7 +299,7 @@ test('t.assert.snapshot()', async (t) => {

299299

await t.test('fails prior to snapshot generation', async (t) => {

300300

const child = await common.spawnPromisified(

301301

process.execPath,

302-

['--experimental-test-snapshots', fixture],

302+

[fixture],

303303

{ cwd: tmpdir.path },

304304

);

305305

@@ -314,7 +314,7 @@ test('t.assert.snapshot()', async (t) => {

314314

await t.test('passes when regenerating snapshots', async (t) => {

315315

const child = await common.spawnPromisified(

316316

process.execPath,

317-

['--test-update-snapshots', '--experimental-test-snapshots', fixture],

317+

['--test-update-snapshots', fixture],

318318

{ cwd: tmpdir.path },

319319

);

320320

@@ -328,7 +328,7 @@ test('t.assert.snapshot()', async (t) => {

328328

await t.test('passes when snapshots exist', async (t) => {

329329

const child = await common.spawnPromisified(

330330

process.execPath,

331-

['--experimental-test-snapshots', fixture],

331+

[fixture],

332332

{ cwd: tmpdir.path },

333333

);

334334

@@ -350,7 +350,6 @@ test('snapshots from multiple files (isolation=none)', async (t) => {

350350

const args = [

351351

'--test',

352352

'--experimental-test-isolation=none',

353-

'--experimental-test-snapshots',

354353

fixture,

355354

fixture2,

356355

];

@@ -372,7 +371,6 @@ test('snapshots from multiple files (isolation=none)', async (t) => {

372371

const args = [

373372

'--test',

374373

'--experimental-test-isolation=none',

375-

'--experimental-test-snapshots',

376374

'--test-update-snapshots',

377375

fixture,

378376

fixture2,

@@ -394,7 +392,6 @@ test('snapshots from multiple files (isolation=none)', async (t) => {

394392

const args = [

395393

'--test',

396394

'--experimental-test-isolation=none',

397-

'--experimental-test-snapshots',

398395

fixture,

399396

fixture2,

400397

];