Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup SCSS unit tests #5293

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Setup SCSS unit tests #5293

merged 3 commits into from
Feb 11, 2025

Conversation

zhpenkov
Copy link
Contributor

@zhpenkov zhpenkov commented Jan 10, 2025

related to: https://github.com/telerik/kendo-themes-private/issues/248

The unit tests are located in the /units folder, which contains subfolders for each theme's tests at /units/{theme}. Additionally, there is a utility.js file that holds the main logic for testing the components and modules.

Run unit tests by using the predefined scripts:

  • npm run test:units - run all unit tests
  • npm run test:{theme} --prefix units - run theme unit tests

Alternatively, directly use the jest CLI and run any specific test:

  • jest units run all unit tests
  • jest units/{theme} run theme unit tests
  • jest units/{theme}/{component}.test.js run component unit test

Use npx jest {command} if you do not have jest globally installed.

Prerequisites:

  • npm run sass
  • npm run docs

@zhpenkov zhpenkov self-assigned this Jan 10, 2025
@zhpenkov zhpenkov added the Test issues related to our visual / ci tests label Jan 10, 2025
@zhpenkov zhpenkov added this to the 2025 Q1 (Feb) milestone Jan 22, 2025
@zhpenkov zhpenkov force-pushed the scss-unit-tests branch 11 times, most recently from 80a7d85 to ab0a180 Compare January 29, 2025 16:23
@zhpenkov zhpenkov changed the title [WIP] Setup SCSS unit tests Setup SCSS unit tests Jan 29, 2025
@zhpenkov zhpenkov force-pushed the scss-unit-tests branch 2 times, most recently from 8c11a7d to ce91529 Compare January 30, 2025 14:59
@zhpenkov zhpenkov marked this pull request as ready for review January 30, 2025 15:06
@zhpenkov zhpenkov requested a review from a team as a code owner January 30, 2025 15:06
@zhpenkov zhpenkov force-pushed the scss-unit-tests branch 5 times, most recently from 7d32e71 to 51d5d35 Compare February 3, 2025 12:44
@zhpenkov zhpenkov requested a review from dtopuzov February 5, 2025 08:12
@zhpenkov zhpenkov force-pushed the scss-unit-tests branch 2 times, most recently from e3611f0 to e36de39 Compare February 10, 2025 15:55
@zhpenkov zhpenkov requested review from epetrow and a team February 10, 2025 16:31
@zhpenkov zhpenkov merged commit cdc3cfd into develop Feb 11, 2025
33 checks passed
@zhpenkov zhpenkov deleted the scss-unit-tests branch February 11, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Test issues related to our visual / ci tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants