From 2be9d136d96b2d62459e2a5570bfbe4b9d538ee7 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Sun, 8 Apr 2018 22:43:04 +0800 Subject: [PATCH] fix: expand is cli option rather than configuration --- jest.config.js | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index c63187a530..ae9625b6d8 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,6 +7,5 @@ module.exports = { ], setupTestFrameworkScriptFile: './test/utils/setup', testPathIgnorePatterns: ['test/fixtures/.*/.*?/'], - moduleFileExtensions: ['js', 'mjs', 'json'], - expand: true + moduleFileExtensions: ['js', 'mjs', 'json'] } diff --git a/package.json b/package.json index 2232114b25..33adf5cd7a 100644 --- a/package.json +++ b/package.json @@ -58,10 +58,10 @@ "prebuild": "yarn clean", "security": "nsp check || true", "test": "yarn test:fixtures && yarn test:unit", - "test:fixtures": "jest --maxWorkers=4 --coverage test/fixtures", + "test:fixtures": "jest --maxWorkers=4 --coverage -e test/fixtures", "test:e2e": "jest --maxWorkers=1 test/e2e", "test:lint": "yarn lint && yarn security", - "test:unit": "jest --maxWorkers=4 --coverage test/unit" + "test:unit": "jest --maxWorkers=4 --coverage -e test/unit" }, "engines": { "node": ">=8.0.0",