// test/basic.test.js import test from 'node:test'; import assert from 'node:assert'; test('synchronous passing test', (t) => assert.strictEqual(1, 1); );
But as of April 2026, Node 18 belongs in the history books—not your production servers. If you haven't migrated to Node 20 (and soon, 22), treat this as your wake-up call. node 18
This meant you could pipe fetch responses directly to file streams using a standard API: // test/basic
However, many enterprises move slowly. If you're maintaining a production app on Node 18, here is your upgrade path: // test/basic.test.js import test from 'node:test'
Released in April 2022, Node 18 entered LTS (Long-Term Support) later that year and officially reached its End-of-Life in April 2025. So, why are we writing about an "old" version in 2026?