Skip to content

Commit b743cb4

Browse files
committed
refactor: modernize test structure and Jest configuration
- Move component tests to co-located __tests__ directories - Rename test files to follow .test.js/.test.jsx convention - Simplify Jest testMatch patterns using glob syntax - Remove empty .keep files from unused test directories
1 parent 138e8ba commit b743cb4

6 files changed

Lines changed: 1 addition & 3 deletions

File tree

jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ module.exports = {
33
testEnvironment: 'jsdom',
44
setupFilesAfterEnv: ['<rootDir>/test/setupTests.js'],
55
testMatch: [
6-
'<rootDir>/test/**/*.test.js',
7-
'<rootDir>/test/**/*Test.js'
6+
'<rootDir>/{test,src}/**/__tests__/*.test.{js,jsx}'
87
],
98
moduleFileExtensions: ['js', 'jsx'],
109
transform: {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-env node, jest */
21
/*eslint no-console: 0*/
32
'use strict';
43

test/actions/.keep

Whitespace-only changes.

test/sources/.keep

Whitespace-only changes.

test/stores/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)