@@ -121,7 +121,7 @@ module.exports = {
121
121
// restoreMocks: false,
122
122
123
123
// The root directory that Jest should scan for tests and modules within
124
- // rootDir: undefined ,
124
+ rootDir : "./app/javascript" ,
125
125
126
126
// A list of paths to directories that Jest should use to search for files in
127
127
// roots: [
@@ -135,7 +135,7 @@ module.exports = {
135
135
setupFiles : [ "fake-indexeddb/auto" ] ,
136
136
137
137
// A list of paths to modules that run some code to configure or set up the testing framework before each test
138
- setupFilesAfterEnv : [ "./app/javascript/ test-utils/setup.js" ] ,
138
+ setupFilesAfterEnv : [ "./test-utils/setup.js" ] ,
139
139
140
140
// The number of seconds after which a test is considered as slow and reported as such in the results.
141
141
// slowTestThreshold: 5,
@@ -153,7 +153,7 @@ module.exports = {
153
153
// testLocationInResults: false,
154
154
155
155
// The glob patterns Jest uses to detect test files
156
- testMatch : [ "<rootDir>/app/javascript/ components/**/*.spec.js" ] ,
156
+ testMatch : [ "<rootDir>/components/**/*.spec.js" ] ,
157
157
158
158
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
159
159
// testPathIgnorePatterns: ["/node_modules/"],
@@ -168,10 +168,13 @@ module.exports = {
168
168
// testRunner: "jest-circus/runner",
169
169
170
170
// A map from regular expressions to paths to transformers
171
- // transform: {}
171
+ transform : {
172
+ "^.+\\.(t|j)sx?$" : "@swc/jest" ,
173
+ "^.+\\.(t|j)s?$" : "@swc/jest"
174
+ } ,
172
175
173
176
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
174
- transformIgnorePatterns : [ "node_modules/(?!uuid|(?!proxy-memoize)|proxy-memoize)" ]
177
+ transformIgnorePatterns : [ ]
175
178
176
179
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
177
180
// unmockedModulePathPatterns: undefined,
0 commit comments