Skip to content

Commit

Permalink
intro -> jest
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Apr 26, 2024
1 parent 81fc1bf commit 900c4fc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/client-side.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ npm test src/jest/client/HelloWorld.test.tsx

[source, Terminal]
----
> intro@1.0.0 test
> tutorial-jest@1.0.0 test
> jest --no-cache --coverage src/jest/client/HelloWorld.test.tsx
PASS CLIENT src/jest/client/HelloWorld.test.tsx
Expand Down
2 changes: 1 addition & 1 deletion docs/mock-xp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Running the test produces the glorious result:

[source, Terminal]
----
> intro@1.0.0 test
> tutorial-jest@1.0.0 test
> jest --no-cache --coverage src/jest/server/preview.test.ts
PASS SERVER src/jest/server/preview.test.ts
Expand Down
2 changes: 1 addition & 1 deletion docs/setup.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You may follow the steps in this guide to configure Jest for an existing project

To create a project for the tutorial, run the following command:

enonic project create com.example.tutorial.jest -r tutorial-intro -d jest-tutorial
enonic project create com.example.tutorial.jest -r tutorial-jest -d jest-tutorial

This will create an app and place it in a folder called `jest-tutorial`.

Expand Down
2 changes: 1 addition & 1 deletion docs/test.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This should produce an output looking something like this:

[source, terminal]
----
> intro@1.0.0 test
> tutorial-jest@1.0.0 test
> jest --no-cache --coverage src/jest/server/fibonacci.test.ts
PASS SERVER src/jest/server/fibonacci.test.ts
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "intro",
"name": "tutorial-jest",
"version": "1.0.0",
"description": "Introduction to Enonic XP",
"description": "Introduction to React on Enonic XP",
"devDependencies": {
"@enonic-types/global": "^7",
"@enonic-types/lib-cluster": "^7",
Expand Down Expand Up @@ -60,23 +60,24 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/enonic/tutorial-intro.git"
"url": "git+https://github.com/enonic/tutorial-jest.git"
},
"keywords": [
"enonic",
"xp",
"cms",
"introduction",
"jest",
"tutorial"
],
"author": "Enonic",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/enonic/tutorial-intro/issues"
"url": "https://github.com/enonic/tutorial-jest/issues"
},
"homepage": "https://github.com/enonic/tutorial-intro#readme",
"homepage": "https://github.com/enonic/tutorial-jest#readme",
"engines": {
"node": ">= 20.10.0",
"npm": ">= 10.2.3"
}
},
"private": true
}

0 comments on commit 900c4fc

Please sign in to comment.