forked from microsoft/BotFramework-DirectLineJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
14 lines (13 loc) · 798 Bytes
/
jest.config.js
File metadata and controls
14 lines (13 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = {
setupFilesAfterEnv: ['./__tests__/directLineStreaming/__setup__/expect/activityContaining.ts'],
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)(spec|test).[jt]s?(x)'],
testPathIgnorePatterns: ['<rootDir>/__tests__/setup/', '<rootDir>/__tests__/directLineStreaming/__setup__/'],
// Some packages enforce ESM but jest@27.0.6 does not fully support ESM yet.
// We need to transpile these ESM packages back to CommonJS when importing them under Jest:
// - botframework-streaming
// - p-defer
// - uuid
// Jest default is ["/node_modules/", "\\.pnp\\.[^\\\/]+$"].
// https://jestjs.io/docs/configuration#transformignorepatterns-arraystring
transformIgnorePatterns: ['\\/node_modules\\/(?!(botframework-streaming|p-defer|uuid)\\/)', '\\.pnp\\.[^\\/]+$']
};