From 5ddfef324e20a754371056fa0b06dfa2b625c708 Mon Sep 17 00:00:00 2001 From: xt0x Date: Wed, 13 May 2026 09:19:49 +0900 Subject: [PATCH 1/3] refactor(tests): rename test directory to tests --- {test => tests}/acceptance.spec.ts | 0 {test => tests}/assets.spec.ts | 0 {test => tests}/bits.spec.ts | 0 {test => tests}/cli/args.spec.ts | 0 {test => tests}/cli/commands.spec.ts | 0 {test => tests}/cli/hex.spec.ts | 0 {test => tests}/cli/integration.spec.ts | 0 {test => tests}/cli/run.spec.ts | 0 {test => tests}/constants.spec.ts | 0 {test => tests}/crypto.spec.ts | 0 {test => tests}/entropy-generator.spec.ts | 0 {test => tests}/entropy-to-mnemonic.spec.ts | 0 {test => tests}/errors.spec.ts | 0 {test => tests}/integration.spec.ts | 0 {test => tests}/mnemonic-to-entropy.spec.ts | 0 {test => tests}/mnemonic-to-seed.spec.ts | 0 {test => tests}/normalize-mnemonic.spec.ts | 0 {test => tests}/strict-mnemonic.spec.ts | 0 {test => tests}/validate-mnemonic.spec.ts | 0 {test => tests}/validation-result.spec.ts | 0 20 files changed, 0 insertions(+), 0 deletions(-) rename {test => tests}/acceptance.spec.ts (100%) rename {test => tests}/assets.spec.ts (100%) rename {test => tests}/bits.spec.ts (100%) rename {test => tests}/cli/args.spec.ts (100%) rename {test => tests}/cli/commands.spec.ts (100%) rename {test => tests}/cli/hex.spec.ts (100%) rename {test => tests}/cli/integration.spec.ts (100%) rename {test => tests}/cli/run.spec.ts (100%) rename {test => tests}/constants.spec.ts (100%) rename {test => tests}/crypto.spec.ts (100%) rename {test => tests}/entropy-generator.spec.ts (100%) rename {test => tests}/entropy-to-mnemonic.spec.ts (100%) rename {test => tests}/errors.spec.ts (100%) rename {test => tests}/integration.spec.ts (100%) rename {test => tests}/mnemonic-to-entropy.spec.ts (100%) rename {test => tests}/mnemonic-to-seed.spec.ts (100%) rename {test => tests}/normalize-mnemonic.spec.ts (100%) rename {test => tests}/strict-mnemonic.spec.ts (100%) rename {test => tests}/validate-mnemonic.spec.ts (100%) rename {test => tests}/validation-result.spec.ts (100%) diff --git a/test/acceptance.spec.ts b/tests/acceptance.spec.ts similarity index 100% rename from test/acceptance.spec.ts rename to tests/acceptance.spec.ts diff --git a/test/assets.spec.ts b/tests/assets.spec.ts similarity index 100% rename from test/assets.spec.ts rename to tests/assets.spec.ts diff --git a/test/bits.spec.ts b/tests/bits.spec.ts similarity index 100% rename from test/bits.spec.ts rename to tests/bits.spec.ts diff --git a/test/cli/args.spec.ts b/tests/cli/args.spec.ts similarity index 100% rename from test/cli/args.spec.ts rename to tests/cli/args.spec.ts diff --git a/test/cli/commands.spec.ts b/tests/cli/commands.spec.ts similarity index 100% rename from test/cli/commands.spec.ts rename to tests/cli/commands.spec.ts diff --git a/test/cli/hex.spec.ts b/tests/cli/hex.spec.ts similarity index 100% rename from test/cli/hex.spec.ts rename to tests/cli/hex.spec.ts diff --git a/test/cli/integration.spec.ts b/tests/cli/integration.spec.ts similarity index 100% rename from test/cli/integration.spec.ts rename to tests/cli/integration.spec.ts diff --git a/test/cli/run.spec.ts b/tests/cli/run.spec.ts similarity index 100% rename from test/cli/run.spec.ts rename to tests/cli/run.spec.ts diff --git a/test/constants.spec.ts b/tests/constants.spec.ts similarity index 100% rename from test/constants.spec.ts rename to tests/constants.spec.ts diff --git a/test/crypto.spec.ts b/tests/crypto.spec.ts similarity index 100% rename from test/crypto.spec.ts rename to tests/crypto.spec.ts diff --git a/test/entropy-generator.spec.ts b/tests/entropy-generator.spec.ts similarity index 100% rename from test/entropy-generator.spec.ts rename to tests/entropy-generator.spec.ts diff --git a/test/entropy-to-mnemonic.spec.ts b/tests/entropy-to-mnemonic.spec.ts similarity index 100% rename from test/entropy-to-mnemonic.spec.ts rename to tests/entropy-to-mnemonic.spec.ts diff --git a/test/errors.spec.ts b/tests/errors.spec.ts similarity index 100% rename from test/errors.spec.ts rename to tests/errors.spec.ts diff --git a/test/integration.spec.ts b/tests/integration.spec.ts similarity index 100% rename from test/integration.spec.ts rename to tests/integration.spec.ts diff --git a/test/mnemonic-to-entropy.spec.ts b/tests/mnemonic-to-entropy.spec.ts similarity index 100% rename from test/mnemonic-to-entropy.spec.ts rename to tests/mnemonic-to-entropy.spec.ts diff --git a/test/mnemonic-to-seed.spec.ts b/tests/mnemonic-to-seed.spec.ts similarity index 100% rename from test/mnemonic-to-seed.spec.ts rename to tests/mnemonic-to-seed.spec.ts diff --git a/test/normalize-mnemonic.spec.ts b/tests/normalize-mnemonic.spec.ts similarity index 100% rename from test/normalize-mnemonic.spec.ts rename to tests/normalize-mnemonic.spec.ts diff --git a/test/strict-mnemonic.spec.ts b/tests/strict-mnemonic.spec.ts similarity index 100% rename from test/strict-mnemonic.spec.ts rename to tests/strict-mnemonic.spec.ts diff --git a/test/validate-mnemonic.spec.ts b/tests/validate-mnemonic.spec.ts similarity index 100% rename from test/validate-mnemonic.spec.ts rename to tests/validate-mnemonic.spec.ts diff --git a/test/validation-result.spec.ts b/tests/validation-result.spec.ts similarity index 100% rename from test/validation-result.spec.ts rename to tests/validation-result.spec.ts From 6c67817f3203c7a9f076f9cd49fbcc482531b784 Mon Sep 17 00:00:00 2001 From: xt0x Date: Wed, 13 May 2026 09:20:20 +0900 Subject: [PATCH 2/3] refactor(vscode): update extensions and settings for GitHub Copilot integration --- .vscode/commit-message-instructions.md | 10 ++++++++++ .vscode/extensions.json | 7 ++++++- .vscode/settings.json | 5 +++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .vscode/commit-message-instructions.md diff --git a/.vscode/commit-message-instructions.md b/.vscode/commit-message-instructions.md new file mode 100644 index 0000000..9f7c046 --- /dev/null +++ b/.vscode/commit-message-instructions.md @@ -0,0 +1,10 @@ +# Commit message rules + +- Write every commit message in English. +- Create exactly one commit message. +- Use this format exactly: (): +- Scope is mandatory for every commit. +- Never omit the scope. +- Use lowercase for type and scope. +- Write the subject in imperative mood. +- Keep the message to one line and describe the change concisely. diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b2793df..1c5bccf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,8 @@ { - "recommendations": ["biomejs.biome", "JuanBlanco.solidity"] + "recommendations": [ + "biomejs.biome", + "JuanBlanco.solidity", + "GitHub.copilot", + "GitHub.copilot-chat" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 9ae8c22..a555cf2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,11 @@ "source.fixAll.biome": "explicit", "source.organizeImports.biome": "explicit" }, + "github.copilot.chat.commitMessageGeneration.instructions": [ + { + "file": ".vscode/commit-message-instructions.md" + } + ], "[solidity]": { "editor.defaultFormatter": "JuanBlanco.solidity" } From e5133cb63e697d7282477d67ebf2f9bb4c4a02b2 Mon Sep 17 00:00:00 2001 From: xt0x Date: Wed, 13 May 2026 09:22:24 +0900 Subject: [PATCH 3/3] refactor(ci): streamline CI steps and update test directory references --- .github/workflows/ci.yaml | 4 +--- vitest.config.ts | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e37d1f9..71639d6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,4 @@ jobs: node-version: 24 cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm lint - - run: pnpm typecheck - - run: pnpm build + - run: pnpm run ci diff --git a/vitest.config.ts b/vitest.config.ts index 879d754..788a810 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,10 +4,10 @@ export default defineConfig({ test: { environment: "node", include: [ - "test/**/*.spec.ts", - "test/**/*.test.ts", - "test/**/*.spec.js", - "test/**/*.test.js", + "tests/**/*.spec.ts", + "tests/**/*.test.ts", + "tests/**/*.spec.js", + "tests/**/*.test.js", ], }, });