Skip to content

Commit 677a672

Browse files
committed
jest: fix jest config.
1 parent ae06747 commit 677a672

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
"prettier --write"
3434
]
3535
},
36+
"jest": {
37+
"collectCoverageFrom": [
38+
"<rootDir>/core/src/*.{tsx,ts}"
39+
],
40+
"coverageReporters": [
41+
"lcov",
42+
"json-summary"
43+
]
44+
},
3645
"devDependencies": {
3746
"@kkt/ncc": "^1.0.15",
3847
"@kkt/less-modules": "^7.5.2",

test/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { render, screen } from '@testing-library/react';
55
import '@testing-library/jest-dom';
66
import React from 'react';
7-
import Split from '../core';
7+
import Split from '../core/src/';
88

99
test('renders react-split', () => {
1010
render(

0 commit comments

Comments
 (0)