summaryrefslogtreecommitdiffstats
path: root/frontend/package.json
diff options
context:
space:
mode:
authorLuis Alvarez <luisito453@gmail.com>2018-05-15 10:24:31 -0500
committerLuis Alvarez <luisito453@gmail.com>2018-05-15 10:24:31 -0500
commitc1bba67bb267adf2597a0ed5d0035d81dbdb412b (patch)
tree83ac331a7587c32e17746e435e45545f1055402c /frontend/package.json
parentcd191eddc553ea15ac6e9135cb5e9055e3552e88 (diff)
Config for .graphql files
Diffstat (limited to 'frontend/package.json')
-rw-r--r--frontend/package.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/package.json b/frontend/package.json
index 9979370..ae412be 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -42,6 +42,8 @@
"enzyme-to-json": "^3.3.3",
"graphql-tools": "^3.0.1",
"jest": "^22.4.3",
+ "jest-transform-graphql": "^2.1.0",
+ "next-plugin-graphql": "0.0.1",
"waait": "^1.0.2"
},
"//": "This is out babel config, I prefer this over a .babelrc file",
@@ -50,7 +52,11 @@
"testPathIgnorePatterns": [
"<rootDir>/.next/",
"<rootDir>/node_modules/"
- ]
+ ],
+ "transform": {
+ "\\.(gql|graphql)$": "jest-transform-graphql",
+ ".*": "babel-jest"
+ }
},
"babel": {
"env": {