Skip to content

Commit 2559b8a

Browse files
authored
Merge pull request #120 from Charlytoc/master
Succesfully finished integration with new compiler and editor
2 parents ebc5359 + 9d18924 commit 2559b8a

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2323
// "forwardPorts": [],
2424

25-
"onCreateCommand": "npm i jest@24.8.0 @learnpack/learnpack@2.1.26 -g && learnpack plugins:install learnpack-react"
25+
"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"
2626

2727
// Use 'postCreateCommand' to run commands after the container is created.
2828
// "postCreateCommand": "yarn install",

.gitpod.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM gitpod/workspace-full:latest
22

33
USER gitpod
44

5-
RUN npm i jest@24.8.0 @learnpack/learnpack@2.1.26 -g && learnpack plugins:install learnpack-react
5+
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

exercises/05-adding-styles/tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ test("ReactDOM needs to be called once", () => {
1111

1212
test("The component Badge should return the exact HTML", () => {
1313
const tree = renderer.create(ReactDOM.render.mock.calls[0][0]).toJSON();
14+
// throw tree
1415
expect(tree).toMatchInlineSnapshot(`
1516
<button
1617
className="btn btn-primary"
1718
style={
18-
Object {
19+
{
1920
"background": "black",
2021
"border": "1px solid yellow",
2122
"fontSize": "16px",

exercises/05.1-second-styles/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test("The component Badge should return the exact HTML", () => {
1515
<button
1616
className="btn btn-primary"
1717
style={
18-
Object {
18+
{
1919
"background": "yellow",
2020
"border": "none",
2121
"color": "black",
@@ -27,7 +27,7 @@ test("The component Badge should return the exact HTML", () => {
2727
<span
2828
className="badge badge-light"
2929
style={
30-
Object {
30+
{
3131
"background": "red",
3232
"borderRadius": "50%",
3333
}

learn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"bugsLink": "https://github.com/learnpack/learnpack/issues/new",
1919
"grading": "isolated",
2020
"editor": {
21-
"version": "1.0.73"
21+
"version": "3.1.23"
2222
}
2323
}

0 commit comments

Comments
 (0)