Skip to content

Commit

Permalink
ci: build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Apr 10, 2024
1 parent f285f94 commit f6678b2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/components/common/Prism.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
import { tomorrow } from 'react-syntax-highlighter/dist/esm/styles/prism';
import { tomorrow } from 'react-syntax-highlighter/dist/cjs/styles/prism';

export type PrismProps = {
className?: string;
Expand Down
5 changes: 2 additions & 3 deletions app/components/web-osx/WindowResizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ export const WindowResizer = forwardRef(function WindowResizer(
const [height, setHeight] = useCachedState(() => externalHeight, [externalHeight]);
const [width, setWidth] = useCachedState(() => externalWidth, [externalWidth]);
const [resizer, setResizer] = useState<HTMLDivElement | null>(null);
const containerRef: React.RefObject<HTMLDivElement> = useRef<HTMLDivElement>(
typeof externalRef === 'function' ? null : externalRef
);
const containerRef: React.RefObject<HTMLDivElement> =
typeof externalRef === 'function' ? (externalRef as any) : useRef<HTMLDivElement>(null);

useEffect(() => {
const onResize = (e: MouseEvent) => {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const jestConfig: JestConfigWithTsJest = {
moduleNameMapper: {
'\\.(scss)$': '<rootDir>/__tests__/identity-obj-proxy-esm.ts',
},
transformIgnorePatterns: ['^.+\\.js$'],
transformIgnorePatterns: ['^.+\\.js$', 'node_modules/(?!react-syntax-highlighter)'],
};

export default jestConfig;
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"react-syntax-highlighter": "^15.5.0"
},
"devDependencies": {
"@parcel/packager-raw-url": "2.9.3",
"@parcel/packager-raw-url": "^2.12.0",
"@parcel/resolver-default": "^2.9.3",
"@parcel/transformer-sass": "2.9.3",
"@parcel/transformer-webmanifest": "2.9.3",
"@parcel/transformer-sass": "^2.12.0",
"@parcel/transformer-webmanifest": "^2.12.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
Expand Down

0 comments on commit f6678b2

Please sign in to comment.