Skip to content

Commit 1df79a5

Browse files
committed
fix: try root directory
1 parent 7a3ce72 commit 1df79a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: jest.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ const config: Config = {
7777
moduleFileExtensions: ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx', 'json', 'node'],
7878

7979
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
80-
8180
moduleNameMapper: {
8281
'\\.(css|less|scss)$': '<rootDir>/__mocks__/styleMock.js',
8382
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__mocks__/fileMock.js',
@@ -122,7 +121,7 @@ const config: Config = {
122121
// restoreMocks: false,
123122

124123
// The root directory that Jest should scan for tests and modules within
125-
// rootDir: undefined,
124+
rootDir: __dirname,
126125

127126
// A list of paths to directories that Jest should use to search for files in
128127
// roots: [

0 commit comments

Comments
 (0)