From a2deebc4612b5d48eef707fd9d2054850532449b Mon Sep 17 00:00:00 2001 From: Armano Date: Fri, 7 Feb 2020 01:24:41 +0100 Subject: [PATCH] test: disable babel build for tests and simplify jest config --- @commitlint/cli/package.json | 3 +++ @commitlint/prompt/package.json | 3 +++ @commitlint/read/package.json | 3 +++ @commitlint/travis-cli/package.json | 3 +++ jest.config.js | 7 +------ 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index b2a1bc330a..06e79b24fd 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -20,6 +20,9 @@ "babel": { "presets": [ "babel-preset-commitlint" + ], + "ignore": [ + "**/*.test.js" ] }, "engines": { diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index b267f5841d..62d7599354 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -17,6 +17,9 @@ "babel": { "presets": [ "commitlint" + ], + "ignore": [ + "**/*.test.js" ] }, "config": { diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index 7a5b38f748..5b77a67c8e 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -14,6 +14,9 @@ "babel": { "presets": [ "babel-preset-commitlint" + ], + "ignore": [ + "**/*.test.js" ] }, "engines": { diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 830de1b615..f1fa12241f 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -18,6 +18,9 @@ "babel": { "presets": [ "babel-preset-commitlint" + ], + "ignore": [ + "**/*.test.js" ] }, "engines": { diff --git a/jest.config.js b/jest.config.js index 319d21f2d3..ac0123951a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,10 +2,5 @@ module.exports = { preset: 'ts-jest/presets/js-with-babel', testEnvironment: '@commitlint/test-environment', testRegex: undefined, - testMatch: [ - '**/*.test.ts?(x)', - '**/@commitlint/{lint,read,travis-cli,cli,load,prompt}/src/**/*.test.js?(x)', - '**/@commitlint/{prompt-cli,config-lerna-scopes}/*.test.js?(x)', - '**/@alias/commitlint/*.test.js?(x)' - ] + testMatch: ['**/*.test.[jt]s?(x)'] };