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 1bd06a7 commit 117bd6cCopy full SHA for 117bd6c
package.json
@@ -4,6 +4,7 @@
4
"description": "Simplify Front-End development",
5
"main": "gulpfile.js",
6
"dependencies": {
7
+ "@types/jest": "^26.0.14",
8
"@types/react": "^16.9.23",
9
"@types/react-dom": "^16.9.5",
10
"lodash": "^4.17.15",
@@ -31,6 +32,7 @@
31
32
"webpack-stream": "^5.2.1",
33
"ts-loader": "^6.2.1",
34
"typescript": "^3.8.2",
35
+ "jest": "^26.4.2",
36
"node-sass": "^4.13.0"
37
},
38
"scripts": {
src/javascript/sum.test.tsx
@@ -0,0 +1,5 @@
1
+const sum = require('./sum');
2
+
3
+test('adds 1 + 2 to equal 3', () => {
+ expect(sum(1, 2)).toBe(3);
+});
src/javascript/sum.tsx
+function sum(a, b) {
+ return a + b;
+}
+module.exports = sum;
0 commit comments