Skip to content

Commit

Permalink
fix: improve passing test
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinAgha committed Sep 25, 2019
1 parent 8b72f67 commit f657df9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ describe('test lib', () => {
const mappers = tsconfigPathsJestMapper(path.resolve(__dirname, '../test/right-config'));
expect(mappers).toEqual({
"\\$components/(.*)": "<rootDir>/src/components/$1",
"\\$errors/(.*)": "<rootDir>/src/errors/$1",
"\\$errors": "<rootDir>/src/errors/index.ts",
"@app/(.*)": "<rootDir>/src/app/$1"
})
})
Expand Down
2 changes: 2 additions & 0 deletions test/right-config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"baseUrl": ".",
"paths": {
"$components/*": ["src/components/*"],
"$errors": ["src/errors/index.ts"],
"$errors/*": ["src/errors/*"],
"@app/*": ["src/app/*"]
}
}
Expand Down

0 comments on commit f657df9

Please sign in to comment.