Skip to content

Commit 94abab5

Browse files
committed
test: 💍 Tests setup
1 parent c2e6e48 commit 94abab5

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { render, screen } from "@testing-library/react";
33

4-
import { ReactZoomPanPinchProps } from "../..";
4+
import { ReactZoomPanPinchProps } from "../../src";
55
import { Example } from "../utils/example";
66

77
export const renderExample = (props?: ReactZoomPanPinchProps) => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22

3-
import { ReactZoomPanPinchContentRef } from "../..";
3+
import { ReactZoomPanPinchContentRef } from "../../src";
44

55
export const Controls: React.FC<ReactZoomPanPinchContentRef> = ({
66
zoomIn,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
TransformComponent,
66
ReactZoomPanPinchProps,
77
ReactZoomPanPinchContentRef,
8-
} from "../..";
8+
} from "../../src";
99
import { Controls } from "./controls.utils";
1010

1111
export const Example = (options: {

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config: Config.InitialOptions = {
55
testEnvironment: "jsdom",
66
preset: "ts-jest",
77
testRegex: [".spec.ts"],
8-
roots: ["<rootDir>/node_modules", "<rootDir>/src"],
8+
roots: ["<rootDir>/node_modules", "<rootDir>/src", "<rootDir>/__tests__"],
99
coverageProvider: "v8",
1010
coverageReporters: [
1111
["lcov", { projectRoot: "../.." }],

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"isolatedModules": true,
2828
"noEmit": true
2929
},
30-
"include": ["src"],
30+
"include": ["src", "__tests__"],
3131
"exclude": ["node_modules", "build", "dist", "rollup.config.js"]
3232
}

0 commit comments

Comments
 (0)