Skip to content

Commit

Permalink
feat: basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed May 1, 2022
1 parent b3e5605 commit bbfcb6e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "jest-notes",
"version": "1.0.0",
"description": "> Jest learning notes.",
"main": "index.js",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "jest",
"test:watch": "jest --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/afeiship/jest-notes.git"
},
"keywords": [],
"author": "afeiship",
"license": "ISC",
"bugs": {
"url": "https://github.com/afeiship/jest-notes/issues"
},
"homepage": "https://github.com/afeiship/jest-notes#readme",
"devDependencies": {
"jest": "^28.0.3"
}
}
4 changes: 4 additions & 0 deletions src/2022-05/01-jest-watch/01.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// npx jest ./src/2022-05/01-jest-watch/01.spec.js
test('add', () => {
expect(1 + 1).toBe(2);
});

0 comments on commit bbfcb6e

Please sign in to comment.