2
私は嫌な仕事で自分の冗談を実行しようとしています。実行中のjestとgruntで見つかったテストはありません
gruntfile.jsスニペット:
exec: {
jest: 'node node_modules/jest/bin/jest -u --config="test/unit/jest/jest.conf.json"'
}
jest.conf.json:
{
"testEnvironment": "jsdom",
"setupTestFrameworkScriptFile": "./enzyme.setup.js",
"testResultsProcessor": "jest-teamcity-reporter"
}
enzyme.setup.js:ここでは同じのためのセットアップがある
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-15.4';
configure({ adapter: new Adapter() });
イサキ幹部のタスクを実行している上
コンソールには以下を示しています。
No tests found
In C:\Vishal\UI\Jest-Grunt\proj\test\unit\jest
3 files checked.
testMatch: .js?(x),**/?(*.)(spec|test).js?(x) - 0 matches
testPathIgnorePatterns: \\node_modules\\ - 3 matches
Pattern: - 0 matches
Done, without errors.
を、私は内部のexecタスクを面倒CLIで冗談設定ファイルのパスを渡して、代わりに、パッケージ内の冗談の設定を指定しない場合は驚くべきものがあるが。 jsonファイルで動作します。
これがなぜこのように動作するのかよく分かりません。