Skip to content

Commit

Permalink
test: add required testing dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Murray <[email protected]>
  • Loading branch information
mikemurray committed Jun 4, 2020
1 parent d0840ee commit 70ea280
Show file tree
Hide file tree
Showing 4 changed files with 1,410 additions and 2,368 deletions.
69 changes: 69 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"targets": {
"node": "current",
"browsers": [
"last 2 versions",
"ie 11"
]
}
}
}
]
],
"plugins": [
"babel-plugin-styled-components",
[
"module-resolver",
{
"root": [
"./src"
]
}
],
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
],
"env": {
"jesttest": {
"plugins": [
"babel-plugin-styled-components",
[
"module-resolver",
{
"root": [
"./src"
]
}
],
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
"dynamic-import-node"
]
}
}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.16.3
12.14.1
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@apollo/link-context": "^2.0.0-beta.3",
"@apollo/link-error": "^2.0.0-beta.3",
"@apollo/react-components": "^3.1.3",
"@babel/plugin-proposal-decorators": "^7.10.1",
"@material-ui/core": "^4.9.7",
"@material-ui/lab": "^4.0.0-alpha.46",
"@material-ui/styles": "^4.9.6",
Expand All @@ -47,6 +48,7 @@
"@segment/snippet": "~4.4.0",
"apollo-client": "^2.6.8",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"body-parser": "~1.19.0",
"classnames": "~2.2.6",
"client-sessions": "^0.8.0",
Expand Down Expand Up @@ -80,6 +82,8 @@
},
"devDependencies": {
"@reactioncommerce/eslint-config": "~1.9.0",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-jest": "^26.0.0",
"broken-link-checker": "~0.7.8",
"chai": "~4.2.0",
"chai-cheerio": "~1.0.0",
Expand All @@ -92,9 +96,9 @@
"eslint-plugin-jsx-a11y": "~6.2.1",
"eslint-plugin-promise": "~3.8.0",
"eslint-plugin-react": "~7.12.4",
"jest": "~24.0.0",
"jest": "26.0.0",
"jest-junit": "~6.2.1",
"jest-styled-components": "~6.3.1",
"jest-styled-components": "^7.0.2",
"jest-transform-graphql": "~2.1.0",
"mocha": "~5.2.0",
"react-test-renderer": "~16.7.0",
Expand Down
Loading

0 comments on commit 70ea280

Please sign in to comment.