mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 17:44:20 -08:00
* Basic Layout - Merge with main into new branch - Most of main content and footer working. - Could not get fixed branch of trussworks to `npm install` correctly, so reverted back to public version. (`trussworks/react-uswds#kh-serverside-rendering-fix-1250"`) TODO: - stack sgv warning+cloud icons - get timeline image (which as text that needs to scale) - localization support - move icon includes out of header? - start converting elements over to trussworks * Cleanup - removed unused styles - added some better comments * Revert trussworks to fixed branch * Update package-lock.json * Temporarily pointing toward personal fork until SSR issue has been addressed * Update J40Footer.spec.tsx.snap * setting jestEnvironment to the proper 'jsdom' value, needed for snapshot tests * lingering prettier fix * small version bump Co-authored-by: Nat Hillard <Nathaniel.K.Hillard@omb.eop.gov>
19 lines
656 B
JavaScript
19 lines
656 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': '<rootDir>/jest-preprocess.js',
|
|
},
|
|
moduleNameMapper: {
|
|
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
|
|
// eslint-disable-next-line max-len
|
|
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `<rootDir>/__mocks__/file-mock.js`,
|
|
},
|
|
testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`],
|
|
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],
|
|
globals: {
|
|
__PATH_PREFIX__: ``,
|
|
},
|
|
testURL: `http://localhost`,
|
|
setupFiles: [`<rootDir>/loadershim.js`],
|
|
};
|