Skip to content

Commit e6771f2

Browse files
committed
chore(jest): setup Jest
1 parent 3054c05 commit e6771f2

6 files changed

Lines changed: 1936 additions & 18 deletions

File tree

jest.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
globals: {
3+
'ts-jest': {
4+
tsConfig:
5+
'<rootDir>/projects/pretty-html-log-showcase/tsconfig.spec.json',
6+
stringifyContentPathRegex: '\\.html$',
7+
astTransformers: [
8+
'<rootDir>/node_modules/jest-preset-angular/InlineHtmlStripStylesTransformer'
9+
]
10+
}
11+
},
12+
preset: 'jest-preset-angular',
13+
setupFilesAfterEnv: ['<rootDir>/setupJest.ts'],
14+
testPathIgnorePatterns: [
15+
'<rootDir>/projects/pretty-html-log/src/test.ts',
16+
'<rootDir>/projects/pretty-html-log-showcase/src/test.ts'
17+
]
18+
};

0 commit comments

Comments
 (0)