Skip to content

Commit 6dd766b

Browse files
committed
chore: add jest in root
1 parent f65ad15 commit 6dd766b

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
"prepublishOnly": "pnpm build:lib"
1919
},
2020
"devDependencies": {
21+
"@types/jest": "^29.0.3",
2122
"@typescript-eslint/eslint-plugin": "^5.37.0",
2223
"@typescript-eslint/parser": "^5.37.0",
2324
"commitizen": "^4.2.5",
2425
"cz-conventional-changelog": "3.3.0",
2526
"eslint": "^8.23.1",
2627
"eslint-plugin-react": "^7.31.8",
2728
"eslint-plugin-react-hooks": "^4.6.0",
29+
"jest": "^29.0.3",
2830
"prettier": "^2.7.1",
2931
"prettier-plugin-tailwindcss": "^0.1.13",
3032
"typescript": "^4.8.3"

packages/react-typist-component/src/__test__/Typist.test.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import React from 'react';
2-
import {
3-
fireEvent,
4-
getByTestId,
5-
getByText,
6-
render,
7-
} from '@testing-library/react';
2+
import { fireEvent, getByTestId, render } from '@testing-library/react';
83

94
import Typist from '..';
105
import { nestedChildren, textsArray, PauseTest, BUTTON_ID } from './constant';
11-
import { findByText, waitFor } from './utils';
6+
import { findByText } from './utils';
127

138
afterEach(() => {
149
jest.useRealTimers();

pnpm-lock.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)