Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run typecheck
- run: bun test
- run: bun run test
- run: bun run build
- name: node smoke
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"typecheck:live": "tsc -p tsconfig.live.json --noEmit",
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"prepack": "bun run build",
"test": "bun test src tests/live/credential.test.ts tests/live/fixtures.test.ts tests/live/oauth.test.ts",
"test": "bun test src tests/unit",
"test:live": "bun test tests/live"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test";

import { createStandaloneGmailCredential } from "./credential.js";
import { type GmailOAuthConfig } from "./oauth.js";
import { createStandaloneGmailCredential } from "../live/credential.js";
import { type GmailOAuthConfig } from "../live/oauth.js";

const config: GmailOAuthConfig = {
clientId: "client-id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "bun:test";

import type { GmailTools } from "../../src/tools/create-tools.js";
import { findGmailFixture } from "./fixtures.js";
import { findGmailFixture } from "../live/fixtures.js";

test("findGmailFixture uses the Gmail tool argument contract", async () => {
let call:
Expand Down
2 changes: 1 addition & 1 deletion tests/live/oauth.test.ts → tests/unit/oauth.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";

import { readGmailOAuthConfig, refreshGmailAccessToken } from "./oauth.js";
import { readGmailOAuthConfig, refreshGmailAccessToken } from "../live/oauth.js";

describe("Gmail OAuth", () => {
test("normalizes the required configuration", () => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.live.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"compilerOptions": {
"types": ["node", "@types/bun"]
},
"include": ["src", "tests/live"]
"include": ["src", "tests/unit", "tests/live"]
}
3 changes: 2 additions & 1 deletion tsconfig.typecheck.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "./tsconfig.json"
"extends": "./tsconfig.json",
"include": ["src", "tests/unit"]
}
Loading