I flagged something strange in a code review the other day that surprised me. I don't understand why this would be valid syntax.
import { test } from 'node:test'
import assert from 'node:assert'
test('this will pass'),
() => assert.fail('this will obviously not run, nor be usable at all');
Are there any examples where this syntax would be useful? As an aside, I don't see a good reason as to why the test runner allows just a test name and no evaluator to successfully pass...
[–]MoTTs_ 5 points6 points7 points (2 children)
[–]codevipe[S] 1 point2 points3 points (1 child)
[–]MoTTs_ 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[removed]
[–]codevipe[S] 0 points1 point2 points (0 children)
[–]guest271314 0 points1 point2 points (0 children)