Skip to content

Conversation

@davejcameron
Copy link
Contributor

Split discount tests into separate files

This PR splits the combined discount test file into separate test files for each function:

  1. Created generate_cart_run.test.liquid for testing cart-based discounts
  2. Created generate_delivery_run.test.liquid for testing delivery-based discounts
  3. Removed the original combined discount.test.liquid file

This change follows the one-test-file-per-implementation-file pattern, making it easier to maintain tests and implement new functionality. Tests continue to pass for both JavaScript and TypeScript flavors.

Copy link
Contributor

@devisscher devisscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! That was quick!

@davejcameron davejcameron merged commit d9240e9 into main Apr 17, 2025
4 checks passed
@davejcameron davejcameron deleted the js-discount-split-tests branch April 17, 2025 18:06
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