Skip to content

Commit

Permalink
fix: Fixes polkadot-js#221. Exclude tests files in build directory. O…
Browse files Browse the repository at this point in the history
…nly use those in src (polkadot-js#222)

* fix: Fixes polkadot-js#221. Exclude tests files in build directory. Only use those in src

* See modulePathIgnorePatterns: https://jestjs.io/docs/en/configuration.html#modulepathignorepatterns-array-string

* fix: Update modulePathIgnorePatterns to cater for renamed packages

* Update modulePathIgnorePatterns to match renaming that occurred in PR polkadot-js#220

* test: Add build directory of api/rx to Jest config of modulePathIgnorePatterns
  • Loading branch information
ltfschoen authored and jacogr committed Oct 10, 2018
1 parent a9c195b commit 1e9b69c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@ module.exports = Object.assign({}, config, {
'@polkadot/jsonrpc(.*)$': '<rootDir>/packages/type-jsonrpc/src/$1',
'@polkadot/storage(.*)$': '<rootDir>/packages/type-storage/src/$1',
'@polkadot/types(.*)$': '<rootDir>/packages/types/src/$1'
}
},
modulePathIgnorePatterns: [
'<rootDir>/packages/api/build',
'<rootDir>/packages/api-observable/build',
'<rootDir>/packages/rpc-core/build',
'<rootDir>/packages/rpc-provider/build',
'<rootDir>/packages/rpc-rx/build',
'<rootDir>/packages/type-extrinsics/build',
'<rootDir>/packages/type-jsonrpc/build',
'<rootDir>/packages/type-storage/build/',
'<rootDir>/packages/types/build'
]
});

0 comments on commit 1e9b69c

Please sign in to comment.