From 32cf12dcece9f7ef0d3e06376b81feb52dc801be Mon Sep 17 00:00:00 2001 From: 0xRaiden <67233402+Raiden1411@users.noreply.github.com> Date: Fri, 13 Oct 2023 22:27:30 +0100 Subject: [PATCH] chore: move vitest config files to test folder (#202) --- .github/CONTRIBUTING.md | 2 +- package.json | 8 ++++---- .../abitype/test/vitest.config.ts | 0 .../abitype/test/vitest.workspace.ts | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename vitest.config.ts => packages/abitype/test/vitest.config.ts (100%) rename vitest.workspace.ts => packages/abitype/test/vitest.workspace.ts (100%) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 58c090e7..813715d0 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -82,7 +82,7 @@ pnpm install After the install completes, pnpm links packages across the project for development and [git hooks](https://github.com/toplenboren/simple-git-hooks) are set up. -> **Note:** In case you have to install new packages or upgrade packages make sure to use **pnpm@8.3.1** and **typescript@5.0.4** +> **Note:** In case you have to install new packages or upgrade packages make sure to use **pnpm@8.8.0** and **typescript@5.0.4**
↑ back to top diff --git a/package.json b/package.json index b02cb4eb..55cde6cc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "type": "module", "scripts": { - "bench": "vitest bench", + "bench": "vitest bench -c ./packages/abitype/test/vitest.config.ts", "build": "pnpm run --r --filter \"./packages/**\" build", "changeset:publish": "pnpm version:update && pnpm build && bun .scripts/generateProxyPackages.ts && changeset publish", "changeset:version": "changeset version && pnpm version:update", @@ -18,10 +18,10 @@ "preinstall": "npx only-allow@1.1.1 pnpm", "prepare": "npx simple-git-hooks", "prepublishOnly": "bun .scripts/formatPackageJson.ts", - "test": "vitest", + "test": "vitest -c ./packages/abitype/test/vitest.config.ts", "test:build": "pnpm run --r --parallel test:build", - "test:cov": "vitest run --coverage", - "test:typecheck": "vitest typecheck", + "test:cov": "vitest run --coverage -c ./packages/abitype/test/vitest.config.ts", + "test:typecheck": "vitest typecheck -c ./packages/abitype/test/vitest.config.ts", "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", diff --git a/vitest.config.ts b/packages/abitype/test/vitest.config.ts similarity index 100% rename from vitest.config.ts rename to packages/abitype/test/vitest.config.ts diff --git a/vitest.workspace.ts b/packages/abitype/test/vitest.workspace.ts similarity index 100% rename from vitest.workspace.ts rename to packages/abitype/test/vitest.workspace.ts