diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 966902c0..d5b1ee95 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 -g && npm i @learnpack/learnpack@2.1.39 -g && learnpack plugins:install @learnpack/node@1.1.5 && learnpack plugins:install @learnpack/html@1.1.2" + "onCreateCommand": "npm i jest@29.7.0 jest-environment-jsdom@29.7.0 -g && npm i @learnpack/learnpack@2.1.47 -g && learnpack plugins:install @learnpack/node@1.1.11 && learnpack plugins:install @learnpack/html@1.1.7" // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 035a353f..b61118a1 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -2,5 +2,5 @@ FROM gitpod/workspace-full USER gitpod -RUN npm i jest@24.8.0 -g -RUN npm i @learnpack/learnpack@2.1.26 -g && learnpack plugins:install @learnpack/node@1.1.1 && learnpack plugins:install learnpack-html@0.0.20 +RUN npm i jest@29.7.0 jest-environment-jsdom@29.7.0 -g +RUN npm i @learnpack/learnpack@2.1.47 -g && learnpack plugins:install @learnpack/node@1.1.11 && learnpack plugins:install @learnpack/html@1.1.17 diff --git a/.learn/exercises/11-postcard-divisions/test.js b/.learn/exercises/11-postcard-divisions/test.js index e1c8c42d..42f03fe9 100644 --- a/.learn/exercises/11-postcard-divisions/test.js +++ b/.learn/exercises/11-postcard-divisions/test.js @@ -26,11 +26,13 @@ test("Create a div with class postcard-header as child of .postcard", function() }) test("Create a div with class postcard-body as child of .postcard", function(){ + dom = fromFile(); const e=dom.querySelector('.postcard').inside().querySelector('.postcard-body') expect(e).toBeTruthy(); }) test("Create a div with class postcard-footer as child of .postcard", function(){ + dom = fromFile(); const e=dom.querySelector('.postcard').inside().querySelector('.postcard-footer') expect(e).toBeTruthy(); }) diff --git a/.learn/exercises/11.1-header-content/test.js b/.learn/exercises/11.1-header-content/test.js index 4ab84f27..0886515f 100644 --- a/.learn/exercises/11.1-header-content/test.js +++ b/.learn/exercises/11.1-header-content/test.js @@ -26,16 +26,19 @@ test("Create an image inside the .postcard-header