Skip to content

Commit 11f8231

Browse files
wthothymikee
authored andcommitted
docs: add astTransformers in configuration example (#218)
It is not yet documented in `ts-jest`, but it [does use `require.resolve`](https://github.com/kulshekhar/ts-jest/blob/90beca89b875e947e55fc9774d10493773cbae41/src/config/config-set.ts#L711), which allows us to specify the node module following the file path. Adding this information will prevent issues such as #217. Fixes #217
1 parent 66987ed commit 11f8231

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ import './jestGlobalMocks'; // browser mocks globally available for every test
4444
"globals": {
4545
"ts-jest": {
4646
"tsConfig": "<rootDir>/src/tsconfig.spec.json",
47-
"stringifyContentPathRegex": "\\.html$"
47+
"stringifyContentPathRegex": "\\.html$",
48+
"astTransformers": [
49+
"jest-preset-angular/InlineHtmlStripStylesTransformer"
50+
]
4851
}
4952
},
5053
"transform": {

0 commit comments

Comments
 (0)