Skip to content

Commit

Permalink
fix: try root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Jul 11, 2024
1 parent 7a3ce72 commit 1df79a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const config: Config = {
moduleFileExtensions: ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx', 'json', 'node'],

// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module

moduleNameMapper: {
'\\.(css|less|scss)$': '<rootDir>/__mocks__/styleMock.js',
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__mocks__/fileMock.js',
Expand Down Expand Up @@ -122,7 +121,7 @@ const config: Config = {
// restoreMocks: false,

// The root directory that Jest should scan for tests and modules within
// rootDir: undefined,
rootDir: __dirname,

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

0 comments on commit 1df79a5

Please sign in to comment.