forked from apollographql/react-apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.preact.config.json
28 lines (28 loc) · 925 Bytes
/
jest.preact.config.json
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
{
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
"moduleFileExtensions": ["ts", "tsx", "js", "json"],
"modulePathIgnorePatterns": [
"<rootDir>/examples",
"<rootDir>/test/flow-usage.js",
"<rootDir>/test/typescript-usage.tsx",
"<rootDir>/test/client/graphql",
"<rootDir>/test/client/ApolloConsumer.test.tsx",
"<rootDir>/test/client/ApolloProvider.test.tsx",
"<rootDir>/test/client/Query.test.tsx",
"<rootDir>/test/client/Mutation.test.tsx",
"<rootDir>/test/client/Subscription.test.tsx",
"<rootDir>/test/internal-api/",
"<rootDir>/test/test-utils.test.tsx"
],
"projects": ["<rootDir>"],
"testRegex": "(/test/(?!test-utils\b)\b.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleNameMapper": {
"^react$": "preact-compat",
"react-dom$": "preact-compat",
"react-dom/server": "preact-compat/server"
}
}