forked from aws-amplify/amplify-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
61 lines (61 loc) · 2.73 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
preset: 'ts-jest',
bail: false,
verbose: true,
testRunner: 'jest-circus/runner',
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
testPathIgnorePatterns: [
'**/*.d.ts',
'**/__e2e__/',
'**/__integration__/',
'packages/amplify-e2e-tests/',
'packages/graphql-transformers-e2e-tests/',
'packages/amplify-util-mock/src/__e2e__/',
'packages/amplify-ui-tests/',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'core', 'node'],
collectCoverage: true,
collectCoverageFrom: ['src/**/.(ts|tsx|js|jsx)$', '!src/**/*.test.(ts|tsx|js|jsx)$', '!src/**/*.d.ts'],
coverageDirectory: 'coverage',
projects: [
'<rootDir>/packages/amplify-app',
'<rootDir>/packages/amplify-appsync-simulator',
'<rootDir>/packages/amplify-category-analytics',
'<rootDir>/packages/amplify-category-api',
'<rootDir>/packages/amplify-category-auth',
'<rootDir>/packages/amplify-category-function',
'<rootDir>/packages/amplify-category-hosting',
'<rootDir>/packages/amplify-category-interactions',
'<rootDir>/packages/amplify-category-notifications',
'<rootDir>/packages/amplify-category-predictions',
'<rootDir>/packages/amplify-category-storage',
'<rootDir>/packages/amplify-category-xr',
'<rootDir>/packages/amplify-cli',
'<rootDir>/packages/amplify-codegen',
'<rootDir>/packages/amplify-codegen-appsync-model-plugin',
'<rootDir>/packages/amplify-dynamodb-simulator',
'<rootDir>/packages/amplify-frontend-android',
'<rootDir>/packages/amplify-frontend-ios',
'<rootDir>/packages/amplify-frontend-javascript',
// '<rootDir>/packages/amplify-graphiql-explorer',
'<rootDir>/packages/amplify-graphql-docs-generator',
'<rootDir>/packages/amplify-graphql-types-generator',
'<rootDir>/packages/amplify-provider-awscloudformation',
'<rootDir>/packages/amplify-storage-simulator',
'<rootDir>/packages/amplify-util-mock',
// '<rootDir>/packages/amplify-velocity-template', // todo: enable after migration to Jest
'<rootDir>/packages/graphql-auth-transformer',
'<rootDir>/packages/graphql-connection-transformer',
'<rootDir>/packages/graphql-dynamodb-transformer',
'<rootDir>/packages/graphql-elasticsearch-transformer',
'<rootDir>/packages/graphql-function-transformer',
'<rootDir>/packages/graphql-http-transformer',
'<rootDir>/packages/graphql-key-transformer',
'<rootDir>/packages/graphql-mapping-template',
'<rootDir>/packages/graphql-predictions-transformer',
'<rootDir>/packages/graphql-relational-schema-transformer',
'<rootDir>/packages/graphql-transformer-common',
'<rootDir>/packages/graphql-transformer-core',
'<rootDir>/packages/graphql-versioned-transformer',
],
};