From da28bd22ecca5a3f9d4e01b7ae10586dfd643eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charly=20Chac=C3=B3n?= <107764250+Charlytoc@users.noreply.github.com> Date: Sun, 7 Apr 2024 10:22:21 -0500 Subject: [PATCH 1/6] Update devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 966902c0..60c472bf 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 -g && npm i @learnpack/learnpack@2.1.44 -g && learnpack plugins:install @learnpack/node@1.1.11 && learnpack plugins:install @learnpack/html@1.1.5" // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", From 61ca50c77c0a13f6c8ca79a3c39d90ba84da0df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charly=20Chac=C3=B3n?= <107764250+Charlytoc@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:52:56 +0000 Subject: [PATCH 2/6] Fixed all tests --- .devcontainer/devcontainer.json | 2 +- .learn/exercises/11-postcard-divisions/test.js | 2 ++ .learn/exercises/11.1-header-content/test.js | 3 +++ .learn/exercises/12-split-postcard-body/test.js | 1 + .learn/exercises/12.1-body-content/test.js | 1 + .learn/utils/dom.js | 3 ++- 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 60c472bf..eaa7756d 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@29.7.0 -g && npm i @learnpack/learnpack@2.1.44 -g && learnpack plugins:install @learnpack/node@1.1.11 && learnpack plugins:install @learnpack/html@1.1.5" + "onCreateCommand": "npm i jest@29.7.0 jest-environment-jsdom@29.7.0 -g && npm i @learnpack/learnpack@2.1.45 -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/.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