Skip to content

Commit

Permalink
merging from reservoir-v4 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinGuzman committed Dec 20, 2024
2 parents ab8e0ab + 38db539 commit 4a1bd50
Show file tree
Hide file tree
Showing 35 changed files with 896 additions and 5,685 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ Currently, this repo is in Prerelease. When it is released, this project will ad

- [Updates `Template` component(s)](https://newyorkpubliclibrary.atlassian.net/browse/DSD-1884) and styles per TAD.

### Adds

- Adds `jest-transformer-svg` to mock SVGs more accurately in our tests

### Fixes

- Fixes `TextInput`'s conflicting internal and external ref values for the clearable button focus management.

## 3.5.0 (December 5, 2024)

### Adds

- Adds the `SubNav` component.
- Adds the `"SubNav"`component.
- Adds the `useScrollFadeStyles` hook.

### Updates
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
coverageDirectory: "coverage",
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/src/__tests__/fileMock.ts",
// Handle CSS imports (with CSS modules)
// https://jestjs.io/docs/webpack#mocking-css-modules
Expand All @@ -38,6 +38,7 @@ export default {
// A map from regular expressions to paths to transformers
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
"^.+\\.svg$": "jest-transformer-svg",
},
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: [
Expand Down
Loading

0 comments on commit 4a1bd50

Please sign in to comment.