-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
test: add tests #52
Commits on Feb 21, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 0423974 - Browse repository at this point
Copy the full SHA 0423974View commit details -
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'.
Configuration menu - View commit details
-
Copy full SHA for 810f9fc - Browse repository at this point
Copy the full SHA 810f9fcView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8156dd4 - Browse repository at this point
Copy the full SHA 8156dd4View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 1383d6e - Browse repository at this point
Copy the full SHA 1383d6eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 4cb10df - Browse repository at this point
Copy the full SHA 4cb10dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c845a6c - Browse repository at this point
Copy the full SHA c845a6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad7f26f - Browse repository at this point
Copy the full SHA ad7f26fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 007b4bd - Browse repository at this point
Copy the full SHA 007b4bdView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for d40b68c - Browse repository at this point
Copy the full SHA d40b68cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 612a1e2 - Browse repository at this point
Copy the full SHA 612a1e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f75f768 - Browse repository at this point
Copy the full SHA f75f768View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37aba4b - Browse repository at this point
Copy the full SHA 37aba4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d099b1c - Browse repository at this point
Copy the full SHA d099b1cView commit details