Skip to content

Commit

Permalink
fix unit tests not running
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Jan 17, 2025
1 parent 21994db commit b13273a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ module.exports = function makeConfig(grunt) {
* with a superdesk app open and superdesk-core not installed.
* running `npm link superdesk-core` inside of a superdesk app fixes this.
*/
'superdesk-core': getModuleDir('superdesk-core'),
'superdesk-core':
process.cwd() === __dirname
? __dirname // when running unit tests from this project
: getModuleDir('superdesk-core'),
},
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
Expand Down

0 comments on commit b13273a

Please sign in to comment.