Skip to content

Commit

Permalink
chore: update enzyme context workaround (uber#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon authored and Nadiia Dmytrenko committed Aug 10, 2018
1 parent 0cd46b0 commit 28ece08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM uber/web-base-image:1.0.4
FROM uber/web-base-image:1.0.6

WORKDIR /baseui

Expand All @@ -11,5 +11,5 @@ RUN yarn --ignore-scripts
COPY . .

# Perform any build steps if you want binaries inside of the image
RUN yarn build && patch -p1 < ./node_modules/enzyme-context-patch/patches/enzyme-adapter-react-16+1.1.1.patch
RUN yarn build
RUN yarn build-storybook
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-context-patch": "^0.0.7",
"enzyme-adapter-react-16": "npm:enzyme-react-adapter-future",
"eslint": "^4.18.2",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-uber-universal-stage-3": "^1.0.0-rc.7",
Expand Down Expand Up @@ -79,7 +78,7 @@
"react-dom": ">= 16.4.0 < 17"
},
"engines": {
"node": "8.11.1",
"node": "^8.11.0",
"npm": "6.0.0",
"yarn": ">=1.5.1"
}
Expand Down
12 changes: 4 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3158,13 +3158,13 @@ entities@^1.1.1, entities@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0"

enzyme-adapter-react-16@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.1.1.tgz#a8f4278b47e082fbca14f5bfb1ee50ee650717b4"
"enzyme-adapter-react-16@npm:enzyme-react-adapter-future":
version "1.1.3"
resolved "https://registry.yarnpkg.com/enzyme-react-adapter-future/-/enzyme-react-adapter-future-1.1.3.tgz#f0c102f098086a0ad0270bbdaf9da5113297dc05"
dependencies:
enzyme-adapter-utils "^1.3.0"
lodash "^4.17.4"
object.assign "^4.0.4"
object.assign "^4.1.0"
object.values "^1.0.4"
prop-types "^15.6.0"
react-reconciler "^0.7.0"
Expand All @@ -3178,10 +3178,6 @@ enzyme-adapter-utils@^1.3.0:
object.assign "^4.0.4"
prop-types "^15.6.0"

enzyme-context-patch@^0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/enzyme-context-patch/-/enzyme-context-patch-0.0.7.tgz#24559e8ed25e83ced33bfc72fe7e1678a5d90a28"

enzyme@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.3.0.tgz#0971abd167f2d4bf3f5bd508229e1c4b6dc50479"
Expand Down

0 comments on commit 28ece08

Please sign in to comment.