Permalink
Browse files

fix(jest): avoid aurelia-bindings v1+v2 conflict

This is a similar fix to jest as #906 to webpack. Thank @ariovistus to point this out at https://discourse.aurelia.io/t/jest-cannot-find-module/2217/3
  • Loading branch information...
huochunpeng committed Feb 4, 2019
1 parent 43e9280 commit 7863c2982b23876b5256988a6b1f79e0fb7bab42
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/commands/new/buildsystems/general/unit-test-runners/jest.js
@@ -27,6 +27,10 @@ module.exports = function(project) {
);

project.package.jest = {
moduleNameMapper: {
// avoid aurelia-bindings v1+v2 conflict
'^aurelia-binding$': '<rootDir>/node_modules/aurelia-binding'
},
modulePaths: [
'<rootDir>/src',
'<rootDir>/node_modules'
@@ -65,6 +69,10 @@ module.exports = function(project) {
);

project.package.jest = {
moduleNameMapper: {
// avoid aurelia-bindings v1+v2 conflict
'^aurelia-binding$': '<rootDir>/node_modules/aurelia-binding'
},
modulePaths: [
'<rootDir>/src',
'<rootDir>/node_modules'

0 comments on commit 7863c29

Please sign in to comment.