Skip to content

Commit 590f987

Browse files
committed
Added aliases to Jest config
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent a3ca13b commit 590f987

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.babelrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const {configure} = require("babel-preset-jaid")
2+
3+
module.exports = api => configure(api)

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
"private": true,
33
"version": "1.2.1",
44
"author": "Jaid <jaid.jsx@gmail.com> (https://github.com/Jaid)",
5-
"babel": {
6-
"presets": [
7-
"jaid"
8-
]
9-
},
105
"eslintConfig": {
116
"extends": "jaid"
127
},
@@ -15,7 +10,11 @@
1510
"coverageDirectory": "dist/jest/coverage",
1611
"collectCoverageFrom": [
1712
"src/**"
18-
]
13+
],
14+
"moduleNameMapper": {
15+
"^root": "<rootDir>",
16+
"^lib": "<rootDir>/src/lib"
17+
}
1918
},
2019
"dependencies": {
2120
"@babel/runtime": "^7.3.1",

0 commit comments

Comments
 (0)