From 163db0b832058dded67288b35b4fc920fb081a7f Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Wed, 23 Jun 2021 12:36:38 -0400 Subject: [PATCH] chore: Set test directory via config rather than flag --- jest.config.js | 3 ++- package.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jest.config.js b/jest.config.js index f03f9fcb3db..119f24e2909 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,5 +4,6 @@ module.exports = { cacheDirectory: '.test', collectCoverage: true, collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/stories/**'], - setupFilesAfterEnv: ['/src/utils/test-matchers.tsx', '/src/utils/test-deprecations.tsx'] + setupFilesAfterEnv: ['/src/utils/test-matchers.tsx', '/src/utils/test-deprecations.tsx'], + testRegex: '/src/__tests__/.*\\.[jt]sx?$' } diff --git a/package.json b/package.json index f315ba72995..6aa720e72bf 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "copy-esm-types": "copyfiles -u 1 \"./lib/**/*.d.ts\" ./lib-esm", "lint": "eslint '**/*.{js,ts,tsx}'", "lint:fix": "eslint '**/*.{js,ts,tsx}' --fix", - "test": "jest -- src", - "update-snapshots": "jest -u -- src", + "test": "jest", "watch": "jest --watch --no-coverage", "playroom:start": "playroom start", "playroom:build": "playroom build",