-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Left Sidebar layout * Setup Jest on the project * Create SideBar test * Fix DarkModeSwitch color contrast * Add ScreenReaderOnly Text to expand/collapse button * Create SkipNavigation anchor * Remove unnecessary button from AuthorizedPage
- Loading branch information
1 parent
d1bfa0a
commit 9498e08
Showing
21 changed files
with
11,291 additions
and
2,948 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import nextJest from 'next/jest.js' | ||
|
||
const createJestConfig = nextJest({ | ||
dir: './', | ||
}) | ||
|
||
const config = { | ||
testEnvironment: 'jsdom', | ||
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'], | ||
setupFilesAfterEnv: ['./jest.setup.ts'], | ||
} | ||
|
||
export default createJestConfig(config) |
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,15 @@ | ||
import '@testing-library/jest-dom' | ||
|
||
Object.defineProperty(window, 'matchMedia', { | ||
writable: true, | ||
value: jest.fn().mockImplementation(query => ({ | ||
matches: false, | ||
media: query, | ||
onchange: null, | ||
addListener: jest.fn(), // deprecated | ||
removeListener: jest.fn(), // deprecated | ||
addEventListener: jest.fn(), | ||
removeEventListener: jest.fn(), | ||
dispatchEvent: jest.fn(), | ||
})), | ||
}); |
Oops, something went wrong.