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",