Skip to content

Commit 94b6765

Browse files
committed
build: update eslint and jest config
1 parent e396993 commit 94b6765

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
'use strict'
99

1010
module.exports = {
11+
moduleNameMapper: {
12+
'\\.(css|scss)$': '<rootDir>/packages/coreui-icons-react/test/styleMock.js',
13+
},
1114
preset: 'ts-jest',
1215
setupFiles: ['jest-canvas-mock'],
1316
testEnvironment: 'jsdom',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"docs:clean": "lerna run --scope \"@coreui/react-docs\" clean",
1212
"icons:build": "lerna run --scope \"@coreui/icons-react\" build --stream",
1313
"lib:build": "lerna run --scope \"@coreui/react\" build --stream",
14-
"lint": "eslint \"packages/**/src/components/**/*.{js,ts,tsx}\"",
14+
"lint": "eslint \"packages/**/src/**/*.{js,ts,tsx}\"",
1515
"test": "jest --coverage",
1616
"test:update": "jest --coverage --updateSnapshot"
1717
},

0 commit comments

Comments
 (0)