Commit

First steps

g1t-reviewercommitted The first commitBrowse files
4 files+23−00/4 viewed
+14−0
1+name: Test
2+on:
3+ push:
4+ branches: [main]
5+ pull_request:
6+jobs:
7+ test:
8+ runs-on: ubuntu-latest
9+ steps:
10+ - uses: actions/checkout@v7
11+ - uses: actions/setup-node@v7
12+ with:
13+ node-version: 24
14+ - run: npm test
+1−0
1+{ "name": "first-steps", "version": "1.0.0", "type": "module", "scripts": { "test": "node --test" } }
+1−0
1+export const sum = (a, b) => a + b;
+7−0
1+import { test } from "node:test";
2+import assert from "node:assert/strict";
3+import { sum } from "./sum.js";
4+
5+test("adds two numbers", () => {
6+ assert.equal(sum(2, 3), 5);
7+});