lightsoutAlpha

test-not-beside-subject

a test file whose folder holds no source file it could be testing

Deterministic checkadvisory by defaultbasetests

The argument

Under a package's router directory the framework owns every dot in a filename, so a test's subject there is the whole stem minus the test suffix — runs.$runId.unit.test.tsx names runs.$runId, never the first segment alone.

The proof

fail
export const getLabel = ({ name }: { name: string }): string => name.trim();
pass
{
	"name": "test-not-beside-subject-pass-fixture",
	"private": true,
	"dependencies": {
		"@tanstack/react-router": "1.168.3",
		"@tanstack/react-start": "1.167.5"
	}
}

Turn it down

Both lines go in your lightsout.config.json.

"standards-checks": { "test-not-beside-subject": "advisory" }
"standards-checks": { "test-not-beside-subject": "off" }