`node --test <dir>` treats a directory argument as a module path on some Node builds (reproduced on v22.23.2), so `npm test` failed before running any tests. `node --test` with no args discovers the same tests/ files portably.
11 lines
220 B
JSON
11 lines
220 B
JSON
{
|
|
"name": "personal-blog",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "A small static personal blog with a mailto-based contact page.",
|
|
"scripts": {
|
|
"test": "node --test"
|
|
}
|
|
}
|