Skip to content

Commit

Permalink
Fix build issue, include utils in jest (subquery#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname authored Apr 28, 2022
1 parent f695157 commit bc11309
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
'packages/contract-processors/src/**/*.ts',
'packages/node/src/**/*.ts',
'packages/node-terra/src/**/*.ts',
'packages/utils/src/**/*.ts',
'packages/validator/src/**/*.ts',
],

Expand Down Expand Up @@ -97,6 +98,8 @@ module.exports = {
'^@subql/common-terra/(.*)$': '<rootDir>/packages/common-terra/src/$1',
'^@subql/common': '<rootDir>/packages/common/src',
'^@subql/common/(.*)$': '<rootDir>/packages/common/src/$1',
'^@subql/utils': '<rootDir>/packages/utils/src',
'^@subql/utils/(.*)$': '<rootDir>/packages/utils/src/$1',
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
Expand Down
1 change: 1 addition & 0 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
{"path": "../common"},
{"path": "../common-substrate"},
{"path": "../common-terra"},
{"path": "../utils"},
{"path": "../validator"}
],
"include": ["src/**/*"]
Expand Down
3 changes: 2 additions & 1 deletion packages/node-terra/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"references": [
{ "path": "../common" },
{ "path": "../common-terra" },
{ "path": "../types-terra" }
{ "path": "../types-terra" },
{ "path": "../utils" }
],
"include": ["src/**/*"]
}
3 changes: 2 additions & 1 deletion packages/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"references": [
{ "path": "../common" },
{ "path": "../common-substrate" },
{ "path": "../types" }
{ "path": "../types" },
{ "path": "../utils" }
],
"include": ["src/**/*"]
}
2 changes: 1 addition & 1 deletion packages/query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"outDir": "./dist",
"lib": ["dom"]
},
"references": [{"path": "../common"}, {"path": "../types"}],
"references": [{"path": "../common"}, {"path": "../types"}, {"path": "../utils"}],
"include": ["src/**/*"]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
{"path": "packages/node"},
{"path": "packages/types"},
{"path": "packages/types-terra"},
{"path": "packages/utils"},
{"path": "packages/validator"}
],
"include": ["packages/**/*"],
Expand Down

0 comments on commit bc11309

Please sign in to comment.