rsnext/examples/with-typescript-graphql/jest.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
423 B
JavaScript
Raw Permalink Normal View History

module.exports = {
roots: ["<rootDir>"],
moduleFileExtensions: ["ts", "tsx", "js", "json", "jsx"],
testPathIgnorePatterns: ["<rootDir>[/\\\\](node_modules|.next)[/\\\\]"],
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(ts|tsx)$"],
transform: {
"^.+\\.(ts|tsx)$": "babel-jest",
"\\.graphql$": [
"graphql-let/jestTransformer",
{ subsequentTransformer: "babel-jest" },
],
},
};