Skip to content

Commit

Permalink
test: solve some issues with some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-i-am committed Aug 5, 2024
1 parent bc9ee24 commit bb78cca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ module.exports = createConfig('jest', {
moduleNameMapper: {
'^lodash-es$': 'lodash',
'^CourseAuthoring/(.*)$': '<rootDir>/src/$1',
'^axios$': 'axios/dist/axios.js',
},
modulePathIgnorePatterns: [
'/src/pages-and-resources/utils.test.jsx',
],
testTimeout: 30000,
testEnvironment: 'jsdom',
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ exports[`CoursesFilters snapshot 1`] = `
search
</span>
</label>
<input
class="form-control"
id="pgn-searchfield-input-1"
name="searchfield-input"
placeholder="Search"
role="searchbox"
type="text"
value=""
/>
<div
class="pgn__form-control-decorator-group"
>
<input
class="form-control"
id="pgn-searchfield-input-1"
name="searchfield-input"
placeholder="Search"
role="searchbox"
type="text"
value=""
/>
</div>
<button
aria-label="submit search"
class="btn-icon btn-icon-primary btn-icon-sm pgn__searchfield__iconbutton-submit"
Expand Down

0 comments on commit bb78cca

Please sign in to comment.