-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor(web-react): Use @local/tests
path alias in tests
#1807
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; | ||
import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; | ||
import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; | ||
import { classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo (if-minor): We need to setup the correct import order. Maybe @curdaj can help with it.
✅ Deploy Preview for spirit-design-system-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
// A map from regular expressions to module names or to arrays of module names | ||
// https://jestjs.io/docs/configuration#modulenamemapper-objectstring-string--arraystring | ||
moduleNameMapper: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (if-minor): Consider using ts-jest
and https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping/
a8ac61a
to
8be5e9c
Compare
@@ -73,9 +88,14 @@ module.exports = { | |||
{ | |||
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'], | |||
pathGroups: [ | |||
// { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought (if-minor): It looks like this option have no effect on the current code. @curdaj
…ock between tests
26e8293
to
a12fbac
Compare
…eIcon mock between tests
Description
tests
directory@local/tests
path alias - tsconfig + ESlintuseIcon
mock because of path changes and crazy Jest and JavaScript mock hoistingdata-testId
->data-testid
Additional context
I suggest doing a review per commit. The settings themselves are in different commits than changes in test files.
Issue reference
https://jira.almacareer.tech/browse/DS-1611
https://jira.almacareer.tech/browse/DS-1612