Skip to content

Commit de85e12

Browse files
galaxy4276claude
andcommitted
test: migrate console_assert message test to snapshot
Migrate test/message/console_assert from the legacy Python-based test runner to the JS snapshot approach used by test-node-output-console.mjs. The new fixture runs console.assert(false, Symbol('hello')) and compares against a snapshot, removing the dependency on testcfg.py and the .out file pattern. Refs: #47707 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 31b9e60 commit de85e12

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
require('../common');
3+
require('../../common');
44

55
console.assert(false, Symbol('hello'));
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Assertion failed Symbol(hello)

β€Žtest/message/console_assert.outβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtest/parallel/test-node-output-console.mjsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const skipForceColors =
99

1010
describe('console output', { concurrency: !process.env.TEST_PARALLEL }, () => {
1111
const tests = [
12+
{ name: 'console/console_assert.js' },
1213
{ name: 'console/2100bytes.js' },
1314
{ name: 'console/console_low_stack_space.js' },
1415
{ name: 'console/console.js' },

0 commit comments

Comments
Β (0)