From c7eed071049deb9ce01bacc080dece8690250995 Mon Sep 17 00:00:00 2001 From: Raashish Aggarwal <94279692+raashish1601@users.noreply.github.com> Date: Mon, 11 May 2026 16:06:18 +0530 Subject: [PATCH] test: migrate max tick depth message test Signed-off-by: Raashish Aggarwal <94279692+raashish1601@users.noreply.github.com> --- .../process}/max_tick_depth.js | 2 +- .../process/max_tick_depth.snapshot} | 0 test/parallel/test-node-output-process.mjs | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) rename test/{message => fixtures/process}/max_tick_depth.js (98%) rename test/{message/max_tick_depth.out => fixtures/process/max_tick_depth.snapshot} (100%) create mode 100644 test/parallel/test-node-output-process.mjs diff --git a/test/message/max_tick_depth.js b/test/fixtures/process/max_tick_depth.js similarity index 98% rename from test/message/max_tick_depth.js rename to test/fixtures/process/max_tick_depth.js index 15462157d2160d..2370fce0af9420 100644 --- a/test/message/max_tick_depth.js +++ b/test/fixtures/process/max_tick_depth.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -require('../common'); +require('../../common'); process.maxTickDepth = 10; let i = 20; diff --git a/test/message/max_tick_depth.out b/test/fixtures/process/max_tick_depth.snapshot similarity index 100% rename from test/message/max_tick_depth.out rename to test/fixtures/process/max_tick_depth.snapshot diff --git a/test/parallel/test-node-output-process.mjs b/test/parallel/test-node-output-process.mjs new file mode 100644 index 00000000000000..ea945b27fe0c0a --- /dev/null +++ b/test/parallel/test-node-output-process.mjs @@ -0,0 +1,15 @@ +import '../common/index.mjs'; +import * as fixtures from '../common/fixtures.mjs'; +import * as snapshot from '../common/assertSnapshot.js'; +import { describe, it } from 'node:test'; + +describe('process output', { concurrency: !process.env.TEST_PARALLEL }, () => { + const tests = [ + { name: 'process/max_tick_depth.js' }, + ]; + for (const { name } of tests) { + it(name, async () => { + await snapshot.spawnAndAssert(fixtures.path(name), snapshot.defaultTransform); + }); + } +});