Skip to content

refactor(token-interface): migrate tests from vitest to cucumber-js#2365

Open
ananas-block wants to merge 24 commits intoswen/single-ixfrom
jorrit/refactor-tests-to-cucumber
Open

refactor(token-interface): migrate tests from vitest to cucumber-js#2365
ananas-block wants to merge 24 commits intoswen/single-ixfrom
jorrit/refactor-tests-to-cucumber

Conversation

@ananas-block
Copy link
Copy Markdown
Contributor

Summary

  • Migrate all js/token-interface/ tests from Vitest to Cucumber-js with Gherkin feature files
  • 11 unit scenarios (3 feature files) + 11 E2E scenarios (5 feature files) = 22 total scenarios preserving full coverage
  • Remove vitest and eslint-plugin-vitest dependencies, add @cucumber/cucumber and tsx

Changes

  • Added: cucumber.js config with unit/e2e/default profiles
  • Added: tests/support/world.ts (custom World class) and tests/support/hooks.ts
  • Added: 8 Gherkin .feature files under features/unit/ and features/e2e/
  • Added: 9 step definition .steps.ts files under tests/step-definitions/
  • Deleted: 8 .test.ts files and vitest.config.ts
  • Updated: package.json (deps + scripts), tsconfig.test.json, eslint.config.cjs

Test plan

  • Unit tests pass: pnpm --filter @lightprotocol/token-interface test:unit:all (11 scenarios, 42 steps)
  • E2E tests pass: pnpm --filter @lightprotocol/token-interface test:e2e:all (requires validator)
  • No vitest references remain in js/token-interface/
  • Dry-run confirms all 22 scenarios with 110 steps have matching step definitions

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 29, 2026

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (5)
  • wip
  • draft
  • temp
  • test
  • experimental

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: cf6ad7f3-f571-4e29-b086-b198789877d1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jorrit/refactor-tests-to-cucumber

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ananas-block ananas-block force-pushed the jorrit/refactor-tests-to-cucumber branch from eeda9e7 to 2d724be Compare March 29, 2026 19:48
Replace all vitest test files with Gherkin feature files and
cucumber-js TypeScript step definitions. 11 unit scenarios and
11 E2E scenarios preserve full test coverage.

- Add @cucumber/cucumber and tsx, remove vitest and eslint-plugin-vitest
- Create cucumber.js config with unit/e2e/default profiles
- Create World class and hooks infrastructure
- Write 8 feature files and 9 step definition files
- Delete all *.test.ts files and vitest.config.ts
- Update eslint, tsconfig, and package.json scripts
- Fix CI branch filter ("*" -> "**") for slash-containing base branches
- Update pnpm-lock.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants