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
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ jobs:
- name: Lint
run: npm run lint

- name: Build
run: npm run build:ci
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}

- name: Run tests
run: npm run test:ci
- name: Build and test
run: npm run test:build

2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
}
},
"files": {
"includes": ["*.ts", "*.js", "*.json", "src/**/*"]
"includes": ["*.ts", "*.js", "*.json", "src/**/*", "test/**/*"]
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build:ci": "npm run build:ts && npm run build:copy",
"build:dev": "pnpm run build:ts && pnpm run build:copy",
"build:ts": "tsup",
"build:test": "tsup --entry 'src/**/*.ts' --entry 'test/**/*.ts'",
"build:copy": "node scripts/copy-assets.js",
"start": "node dist/index.js",
"dev": "tsx watch src/index.ts",
Expand All @@ -22,7 +23,8 @@
"check:fix": "biome check --write .",
"typecheck": "tsc --noEmit",
"test": "pnpm run build:dev && node --test dist/**/*.test.js",
"test:ci": "node --test dist/**/*.test.js",
"test:ci": "node --test $(find dist -name '*.test.js')",
"test:build": "npm run build:test && npm run test:ci",
"prepare": "husky",
"pre-commit": "lint-staged",
"sync-guides": "tsx scripts/sync-guides.js",
Expand Down
1 change: 0 additions & 1 deletion test/sanity.test.mjs → test/sanity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ import test from 'node:test';
test('sanity: 1 + 1 equals 2', () => {
assert.equal(1 + 1, 2);
});