Skip to content

Commit ccd8fcd

Browse files
Git commit - changes to test file
1 parent 12e8d6a commit ccd8fcd

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module.exports = {
77
roots: ["<rootDir>/src"],
88
transform: {
99
"^.+\\.[t|j]sx?$": "ts-jest",
10-
"^.+\\.svg?$": "<rootDir>/svgTransform.js"
10+
"^.+\\.svg?$": "<rootDir>/transform.js",
11+
"^.+\\.scss?$": "<rootDir>/transform.js"
1112
},
1213
"testEnvironment": "jsdom",
1314
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",

src/tests/stepperComponent.test.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,7 @@ test("Stepper Component - Number of steps", async () => {
4343
expect(elements?.length).toBe(2);
4444
})
4545

46-
test("Stepper Component - On Click function without config", async () => {
47-
const steps: IStep[] = [{
48-
label: 'Step 1',
49-
description: 'Demo description',
50-
status: 'completed'
51-
}];
52-
const onClick = jest.fn();
53-
const {findByTestId} = render(<Stepper steps={steps} onStepClick={onClick} />)
54-
const bubble = await findByTestId("stepper-bubble");
55-
fireEvent.click(bubble);
56-
expect(onClick).not.toBeCalled();
57-
})
58-
59-
test("Stepper Component - On Click function with config", async () => {
46+
test("Stepper Component - On Click function", async () => {
6047
const steps: IStep[] = [{
6148
label: 'Step 1',
6249
description: 'Demo description',
@@ -67,7 +54,6 @@ test("Stepper Component - On Click function with config", async () => {
6754
<Stepper
6855
steps={steps}
6956
onStepClick={onClick}
70-
enableStepClick={true}
7157
/>
7258
)
7359
const bubble = await findByTestId("stepper-bubble");
File renamed without changes.

0 commit comments

Comments
 (0)