Skip to content

Commit 061b0eb

Browse files
authored
test: disable babel build for tests and simplify jest config (#969)
1 parent 421a46d commit 061b0eb

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

@commitlint/cli/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"babel": {
2121
"presets": [
2222
"babel-preset-commitlint"
23+
],
24+
"ignore": [
25+
"**/*.test.js"
2326
]
2427
},
2528
"engines": {

@commitlint/prompt/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"babel": {
1818
"presets": [
1919
"commitlint"
20+
],
21+
"ignore": [
22+
"**/*.test.js"
2023
]
2124
},
2225
"config": {

@commitlint/read/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"babel": {
1515
"presets": [
1616
"babel-preset-commitlint"
17+
],
18+
"ignore": [
19+
"**/*.test.js"
1720
]
1821
},
1922
"engines": {

@commitlint/travis-cli/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"babel": {
1919
"presets": [
2020
"babel-preset-commitlint"
21+
],
22+
"ignore": [
23+
"**/*.test.js"
2124
]
2225
},
2326
"engines": {

jest.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,5 @@ module.exports = {
22
preset: 'ts-jest/presets/js-with-babel',
33
testEnvironment: '@commitlint/test-environment',
44
testRegex: undefined,
5-
testMatch: [
6-
'**/*.test.ts?(x)',
7-
'**/@commitlint/{lint,read,travis-cli,cli,load,prompt}/src/**/*.test.js?(x)',
8-
'**/@commitlint/{prompt-cli,config-lerna-scopes}/*.test.js?(x)',
9-
'**/@alias/commitlint/*.test.js?(x)'
10-
]
5+
testMatch: ['**/*.test.[jt]s?(x)']
116
};

0 commit comments

Comments
 (0)