We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c214559 commit 3047a80Copy full SHA for 3047a80
package.json
@@ -5,7 +5,9 @@
5
"main": "dist/index.js",
6
"scripts": {
7
"build": "babel src -o dist/index.js",
8
- "dev": "watch 'yarn run build' src"
+ "dev": "watch 'yarn run build' src",
9
+ "test": "jest",
10
+ "test:watch": "yarn run test -- --watch"
11
},
12
"babel": {
13
"presets": [
@@ -20,6 +22,7 @@
20
22
"@babel/cli": "^7.17.6",
21
23
"@babel/core": "^7.17.9",
24
"@babel/preset-env": "^7.16.11",
25
+ "jest": "^27.5.1",
26
"watch": "^1.0.2"
27
}
28
src/index.test.js
@@ -0,0 +1,7 @@
1
+import { helloWord } from ".";
2
+
3
+describe("helloWord", () => {
4
+ test("is hello world", () => {
+ expect(helloWord()).toBe("Hello, World!");
+ });
+});
0 commit comments