Skip to content

Commit

Permalink
test: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Apr 2, 2020
1 parent 25ffeee commit 0100bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config/jest/jest.tests.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ module.exports = {
'<rootDir>/src/**/test/**/*.{js,jsx,ts,tsx}',
'<rootDir>/src/**/tests/**/*.{js,jsx,ts,tsx}',
],
transformIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/cypress'],
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(react-children-utilities)/)',
'<rootDir>/cypress',
],
moduleNameMapper: {
'\\.(eot|otf|webp|ttf|woff\\d?|svg|png|jpe?g|gif)$':
'<rootDir>/src/__mocks__/fileMock.js',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/HelpLabel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('HelpLabel', () => {
})

it('displays a help button', () => {
const { getByLabelText } = render(<HelpLabel identifier="abc" label="def" />)
const { getByLabelText } = render(<HelpLabel identifier="abc" label="def" help="ghi" />)

expect(getByLabelText('help')).not.toBeNull()
})
Expand Down

1 comment on commit 0100bfa

@vercel
Copy link

@vercel vercel bot commented on 0100bfa Apr 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.