Skip to content

Commit

Permalink
chore: repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jun 23, 2024
1 parent a82d4b1 commit 789091f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 62 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ jobs:
- name: Check types (--exactOptionalPropertyTypes false)
run: pnpm typecheck:propertyTypes

# Redundant with `pnpm typecheck`
# If Vitest adds special features in the future, e.g. type coverage, can add this back!
# - name: Test types
# run: pnpm test:typecheck

test:
name: Test
runs-on: ubuntu-latest
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"type": "module",
"scripts": {
"bench": "vitest bench -c ./packages/abitype/test/vitest.config.ts",
"bench": "vitest bench",
"build": "pnpm run --r --filter \"./packages/**\" build",
"changeset:prepublish": "pnpm version:update && pnpm build && bun .scripts/formatPackageJson.ts && bun .scripts/generateProxyPackages.ts",
"changeset:publish": "pnpm changeset:prepublish && changeset publish",
Expand All @@ -17,12 +17,12 @@
"lint:unused": "pnpm clean && knip",
"postinstall": "pnpm preconstruct",
"preconstruct": "bun .scripts/preconstruct.ts",
"preinstall": "npx only-allow pnpm",
"prepare": "npx simple-git-hooks",
"test": "vitest -c ./packages/abitype/test/vitest.config.ts",
"preinstall": "pnpx only-allow pnpm",
"prepare": "pnpx simple-git-hooks",
"test": "vitest",
"test:build": "pnpm run --r --parallel test:build",
"test:cov": "vitest run --coverage -c ./packages/abitype/test/vitest.config.ts",
"test:typecheck": "vitest typecheck -c ./packages/abitype/test/vitest.config.ts",
"test:cov": "vitest run --coverage",
"test:typecheck": "vitest typecheck",
"test:update": "vitest --update",
"trace": "tsc --noEmit --generateTrace ./playgrounds/performance/out --incremental false --project playgrounds/performance/tsconfig.json && echo \"Open playgrounds/performance/out/trace.json in https://ui.perfetto.dev\"",
"typecheck": "pnpm run --r --parallel typecheck && tsc --noEmit",
Expand All @@ -31,7 +31,7 @@
"version:update": "bun .scripts/updateVersion.ts"
},
"devDependencies": {
"@arktype/attest": "0.8.0",
"@arktype/attest": "0.8.1",
"@biomejs/biome": "^1.8.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.27.1",
Expand Down
1 change: 0 additions & 1 deletion packages/abitype/test/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const __dirname = dirname(__filename)
export default function () {
return setup({
benchErrorOnThresholdExceeded: true,
benchPercentThreshold: 10,
tsconfig: resolve(__dirname, '../tsconfig.json'),
formatter: 'pnpm biome format --write',
})
Expand Down
28 changes: 0 additions & 28 deletions packages/abitype/test/vitest.workspace.ts

This file was deleted.

38 changes: 19 additions & 19 deletions pnpm-lock.yaml

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

8 changes: 6 additions & 2 deletions packages/abitype/test/vitest.config.ts → vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ export default defineConfig({
coverage: {
exclude: [
'**/dist/**',
'**/test/**',
'**/*.bench.ts',
'**/*.test.ts',
'**/*.test-d.ts',
'packages/abitype/src/version.ts',
'src/version.ts',
],
include: ['packages/abitype/src/**/*.ts'],
reporter: process.env.CI ? ['lcov'] : ['text', 'json', 'html'],
},
environment: 'node',
globalSetup: ['./test/globalSetup.ts'],
root: './packages/abitype',
setupFiles: ['./test/setup.ts'],
},
})

0 comments on commit 789091f

Please sign in to comment.