Skip to content

Commit

Permalink
Make it pass with ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 13, 2024
1 parent bc3f339 commit c65f0e0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 71 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"storybook": "^8.4.1",
"style-loader": "^4.0.0",
"tailwindcss": "^3.3.0",
"ts-jest": "^29.1.2",
"ts-jest": "^29.2.5",
"ts-loader": "^9.3.0",
"ts-node": "^10.9.1",
"typescript": "^4.7.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/victory-core/src/victory-util/log.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* global console */
/* global console process */
/* eslint-disable no-console */

// TODO: Use "warning" npm module like React is switching to.
export function warn(message: string) {
// @ts-expect-error This will be replaced by webpack DefinePlugin
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
if (process.env.NODE_ENV !== "production") {
if (console && console.warn) {
console.warn(message);
Expand Down
121 changes: 54 additions & 67 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c65f0e0

Please sign in to comment.