-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from InseeFr/feat/typescript
feat: continue the migration to TypeScript
- Loading branch information
Showing
67 changed files
with
224 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { expect, it } from 'vitest'; | ||
import mailMessage from './mailMessage'; | ||
|
||
it('should define bodyTempZonePearl', () => { | ||
expect(mailMessage.bodyTempZonePearl.fr('1')()).toContain( | ||
'Les données sont de nature organisationnelle.' | ||
); | ||
}); | ||
|
||
it('should define bodyTempZonePearl', () => { | ||
expect(mailMessage.bodyTempZoneQueen.fr('1')()).toContain( | ||
'Les données sont de nature questionnaire.' | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
import { describe, it } from 'vitest'; | ||
import { PearlTheme } from './PearlTheme'; | ||
import { Preloader } from './Preloader'; | ||
import D from 'i18n'; | ||
|
||
const renderWithTheme = (ui: React.ReactElement) => render(<PearlTheme>{ui}</PearlTheme>); | ||
|
||
describe('Preloader Component', () => { | ||
it('renders the Preloader component correctly', () => { | ||
const message = 'Loading data...'; | ||
|
||
renderWithTheme(<Preloader message={message} />); | ||
|
||
screen.getByRole('heading', { name: D.pleaseWait, level: 2, hidden: true }); | ||
screen.getByRole('heading', { name: D.message, level: 3, hidden: true }); | ||
screen.getByRole('progressbar', { hidden: true }); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Stack from '@mui/material/Stack'; | ||
import { ComponentProps } from 'react'; | ||
|
||
/** | ||
* A horizontal stack | ||
*/ | ||
|
||
type RowTypes = Omit<ComponentProps<typeof Stack>, 'direction' | 'alignItems'> | ||
export function Row(props: Readonly<RowTypes>) { | ||
return <Stack direction="row" alignItems="center" {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const contactAttemptConfigurationEnum = { | ||
F2F: 'F2F', | ||
TEL: 'TEL', | ||
}; | ||
} as const; |
Oops, something went wrong.