Skip to content

Commit

Permalink
fix(repo): fix jest resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Apr 4, 2023
1 parent cfd72f6 commit 10004e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/patched-jest-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ module.exports = function (path, options) {

// TODO(v17): Remove this workaround
// We have some weird d.ts + .js business going on for these 2 imports so this is a workaround
if (path === '@nrwl/devkit') {
if (path === '@nx/devkit') {
return join(__dirname, '../', './packages/devkit/index.js');
} else if (path === '@nrwl/devkit/testing') {
} else if (path === '@nx/devkit/testing') {
return join(__dirname, '../', './packages/devkit/testing.js');
}
return ts.resolveModuleName(path, options.basedir, compilerOptions, host)
Expand Down

0 comments on commit 10004e0

Please sign in to comment.