mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Add console wire measurement tooling and per-run byte budgets
AI Assisted
This commit is contained in:
1 parent
8e34bf1005
commit
9c07ee5260
9 files changed
+1527
No files matched your search
@@ -0,0 +1 @@
|
||||
specs/
|
||||
@@ -0,0 +1,3 @@
|
||||
# AGENTS.md
|
||||
|
||||
A tiny Node project with no dependencies: `src/greet.js` exports `greet(name)`, and `test/greet.test.mjs` tests it with `node:test` (run `npm test`). Use ESM, keep functions small, and keep every change covered by a test.
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "wire-fixture",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "node --test"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export function greet(name) {
|
||||
return `Hello, ${name}!`;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { greet } from "../src/greet.js";
|
||||
|
||||
test("greet says hello by name", () => {
|
||||
assert.equal(greet("Sam"), "Hello, Sam!");
|
||||
});
|
||||
Reference in new issue
Block a user