jest: fix for new monorepo

This commit is contained in:
41666 2019-04-03 03:35:36 -05:00
parent 057e9f96b4
commit 51dd8bd6b1
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
10 changed files with 48 additions and 38 deletions

View file

@ -3,7 +3,18 @@
"next/babel", "@babel/preset-flow"
],
"plugins": [
[ "styled-components", { "ssr": true } ],
"@babel/plugin-proposal-optional-chaining"
]
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-class-properties",
["@babel/plugin-transform-runtime",
{ "helpers": false }],
[ "styled-components", { "ssr": true } ],
"@babel/plugin-proposal-optional-chaining"
],
"env": {
"test": {
"presets": [
["next/babel", {"preset-env": {"modules": "commonjs"}}]
]
}
}
}