forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.html2.config.js
18 lines (18 loc) · 1.02 KB
/
jest.html2.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
displayName: { color: 'cyan', name: 'html2' },
globals: { npm_package_version: '0.0.0-0.jest' },
moduleFileExtensions: ['html', 'js'], // Will cause fail validation error if 'js' is not included.
rootDir: './',
setupFilesAfterEnv: [
'<rootDir>/__tests__/setup/setupImageSnapshot.js',
'<rootDir>/__tests__/setup/setupTestNightly.js',
'<rootDir>/__tests__/setup/setupTimeout.js'
],
testEnvironment: '<rootDir>/packages/test/harness/src/host/jest/WebDriverEnvironment.js', // Cannot load environment in HTML file due to syntax requirements. Jest also ignores environment comment in transformed file.
testMatch: ['<rootDir>/__tests__/html2/**/*.html'],
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/packages/', '<rootDir>/samples/'], // Jest will warn obsoleted snapshots outside of "testMatch", need "testPathIgnorePatterns" to skip checking obsoleted snapshots.
transform: {
'\\.html$': '<rootDir>/html2-test-transformer.js',
'\\.[jt]sx?$': '<rootDir>/babel-jest-config.js'
}
};