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

test: add tests #52

Merged
merged 13 commits into from
Feb 21, 2024
Merged

test: add tests #52

merged 13 commits into from
Feb 21, 2024

Commits on Feb 21, 2024

  1. chore: update Jest configuration

    Modified Jest configuration to use automatic runtime transformation for React and JSdom as test environment. Additionally, adjusted moduleNameMapper to correctly map the project structure.
    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    0423974 View commit details
    Browse the repository at this point in the history
  2. refactor: refactor keyboard navigation hook

    Simplified the implementation of Keyboard navigation hooks by reducing redundancy in callback functions. Also, renamed from .tsx to .ts since it contains no JSX syntax. Additionally, modified import statement to import useAtom directly from 'jotai' instead of 'jotai/index'.
    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    810f9fc View commit details
    Browse the repository at this point in the history
  3. test: add test files for various hooks

    Introduced test files for the 'useSsrColorScheme', 'useColumns', 'useKeyboardControlledImagesNavigation', and 'useScrollPosition' hooks. These tests cover functionalities such as initial mode setting, mode changing, keyboard navigation, and scroll position detection.
    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    8156dd4 View commit details
    Browse the repository at this point in the history
  4. chore: split Jest configuration for Client and Electron

    The Jest configuration and setup files have been split into separate ones for client and Electron app testing. This will allow distinct test configuration and match patterns for the two different environments. Furthermore, corresponding changes are made in the package.json file to add different test scripts for running these new configuration files.
    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    1383d6e View commit details
    Browse the repository at this point in the history
  5. test: correct test directory naming in client hooks

    Renamed all test directories in src/client/ions/hooks path from "__test__" to "__tests__" to follow naming conventions. This change ensures a consistent file structure, which might have been causing issues in identifying and running test files.
    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    4cb10df View commit details
    Browse the repository at this point in the history
  6. chore: remove report

    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    c845a6c View commit details
    Browse the repository at this point in the history
  7. chore: ignore report

    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ad7f26f View commit details
    Browse the repository at this point in the history
  8. chore: adjust test config

    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    007b4bd View commit details
    Browse the repository at this point in the history
  9. Add GitHub Actions workflows for testing

    Three new workflows have been added for GitHub Actions to run client, e2e, and electron tests. They are configured to trigger on push events to alpha, beta, rc, and main branches or on pull requests to those same branches. All workflows run on the latest version of Ubuntu and use Node.js version 18.x.
    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d40b68c View commit details
    Browse the repository at this point in the history
  10. chore: add workflows

    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    612a1e2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f75f768 View commit details
    Browse the repository at this point in the history
  12. revert: revert change

    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    37aba4b View commit details
    Browse the repository at this point in the history
  13. chore: adjust test script

    pixelass committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    d099b1c View commit details
    Browse the repository at this point in the history