diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e5b9279a..c5f0cd91 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -22,7 +22,7 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - "onCreateCommand": "npm i jest@24.8.0 @learnpack/learnpack@2.1.26 -g && learnpack plugins:install learnpack-react" + "onCreateCommand": "npm i jest@29.7.0 -g && npm i jest-environment-jsdom@29.7.0 -g && npm i @learnpack/learnpack@2.1.47 -g && learnpack plugins:install @learnpack/react@1.1.14" // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile index 84405f97..6ea51891 100644 --- a/.gitpod.dockerfile +++ b/.gitpod.dockerfile @@ -2,4 +2,4 @@ FROM gitpod/workspace-full:latest USER gitpod -RUN npm i jest@24.8.0 @learnpack/learnpack@2.1.26 -g && learnpack plugins:install learnpack-react +RUN npm i jest@29.7.0 -g && npm i jest-environment-jsdom@29.7.0 -g && npm i @learnpack/learnpack@2.1.47 -g && learnpack plugins:install @learnpack/react@1.1.14 diff --git a/exercises/05-adding-styles/tests.js b/exercises/05-adding-styles/tests.js index 0cdb6469..7cd452b1 100644 --- a/exercises/05-adding-styles/tests.js +++ b/exercises/05-adding-styles/tests.js @@ -11,11 +11,12 @@ test("ReactDOM needs to be called once", () => { test("The component Badge should return the exact HTML", () => { const tree = renderer.create(ReactDOM.render.mock.calls[0][0]).toJSON(); + // throw tree expect(tree).toMatchInlineSnapshot(`