Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTO-GENERATED — do not edit directly.
# Source: theholocron/holocron · packages/cli/src/commands/setup-workflows.ts
# Tool: holocron sync-github
# Changes: edit source in theholocron/holocron and push to alpha or main.
# Tool: holocron setup
# Changes: run `holocron setup` to regenerate.
name: Audit

on: # yamllint disable-line rule:truthy
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTO-GENERATED — do not edit directly.
# Source: theholocron/holocron · packages/cli/src/commands/setup-workflows.ts
# Tool: holocron sync-github
# Changes: edit source in theholocron/holocron and push to alpha or main.
# Tool: holocron setup
# Changes: run `holocron setup` to regenerate.
name: Deploy Docs

on: # yamllint disable-line rule:truthy
Expand All @@ -24,4 +24,7 @@ jobs:
deploy-docs:
name: Deploy Docs
uses: theholocron/.github/.github/workflows/deploy-docs.yml@main
with:
name: node-template
use-turbo: false
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTO-GENERATED — do not edit directly.
# Source: theholocron/holocron · packages/cli/src/commands/setup-workflows.ts
# Tool: holocron sync-github
# Changes: edit source in theholocron/holocron and push to alpha or main.
# Tool: holocron setup
# Changes: run `holocron setup` to regenerate.
name: Release

on: # yamllint disable-line rule:truthy
Expand Down
30 changes: 30 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Scaffolded by holocron setup — edit this file freely.
# Source: theholocron/holocron · packages/cli/src/commands/setup.ts

codecov:
require_ci_to_pass: true

coverage:
precision: 2
round: down
status:
project:
default:
target: auto
threshold: 2%
patch:
default:
target: 80%

comment:
layout: "reach,diff,flags,components"
behavior: default
require_changes: true

component_management:
default_rules:
statuses:
- type: patch
target: 80%
individual_components:
[]
48 changes: 30 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ catalogs:
'@theholocron/vitest-config': ^7.8.1

holocron:
'@theholocron/cli': ^3.10.0
'@theholocron/holocron-plugin-github': ^3.10.0
'@theholocron/cli': ^3.18.5
'@theholocron/holocron-plugin-github': ^3.18.5
17 changes: 17 additions & 0 deletions src/add.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { describe, expect, test } from "vitest";

import { add } from "./add.js";

describe("add", () => {
test("returns the correct sum", () => {
expect(add(2, 3)).toBe(5);
});

test("handles negative numbers", () => {
expect(add(-2, -3)).toBe(-5);
});

test("handles zero", () => {
expect(add(0, 5)).toBe(5);
});
});
3 changes: 3 additions & 0 deletions src/add.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function add(a: number, b: number): number {
return a + b;
}
16 changes: 0 additions & 16 deletions src/index.test.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export default function add(a: number, b: number): number {
return a + b;
}
export { add } from "./add.js";
Loading