Skip to content

Commit

Permalink
I have no idea how to make this work
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Nov 25, 2023
1 parent 21132b1 commit c4e0d0f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
27 changes: 14 additions & 13 deletions packages/core/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ export default {
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
transform: {
"^.+\\.(ts|tsx)?$": ["ts-jest", { isolatedModules: true, useESM: true }],
"^.+\\.(js|jsx)$": "babel-jest",
},
globals: {
__PATH_PREFIX__: ``,
"ts-jest": {
babelConfig: {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-react",
["@linaria/babel-preset", { evaluate: true, displayName: true }],
],
"^.+\\.[jt]sx?$": [
"ts-jest",
{
isolatedModules: true,
useESM: true,
allowJs: true,
babelConfig: {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-react",
["@linaria/babel-preset", { evaluate: true, displayName: true }],
],
},
},
},
],
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from "react";
import { NumberOverlayEditorStyle } from "./number-overlay-editor-style.js";
import { NumericFormat } from "react-number-format";
import type { SelectionRange } from "../../data-grid/data-grid-types.js";
import type { NumberFormatValues } from "react-number-format/types/types";
import type { NumberFormatValues } from "react-number-format/types/types.js";

interface Props {
readonly value: number | undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/data-grid/cells/number-cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GridCellKind, type NumberCell } from "../data-grid-types.js";
import type { InternalCellRenderer } from "./cell-types.js";

const NumberOverlayEditor = React.lazy(
async () => await import("../../data-grid-overlay-editor/private/number-overlay-editor")
async () => await import("../../data-grid-overlay-editor/private/number-overlay-editor.js")
);

export const numberCellRenderer: InternalCellRenderer<NumberCell> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { styled } from "@linaria/react";
import type { Rectangle } from "..";
import type { Rectangle } from "../index.js";
import * as React from "react";
import { useResizeDetector } from "../common/resize-detector.js";
import { browserIsSafari } from "../common/browser-detect.js";
Expand Down

0 comments on commit c4e0d0f

Please sign in to comment.