Compare commits

..

No commits in common. "0eb39ff548332aa4aefb33b19f7cd69e9462564f" and "6d68ce034f7fa49046ac95f3b1ec9d2e69764640" have entirely different histories.

4 changed files with 14 additions and 1 deletions

1
dist/__tests__/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare function sumTest(): number;

7
dist/__tests__/index.js vendored Normal file
View File

@ -0,0 +1,7 @@
"use strict";
function sumTest() {
return 1 + 4;
}
test("test sum with 1 + 4 -> 5", function () {
expect(1 + 4).toBe(5);
});

View File

@ -1,6 +1,6 @@
{
"name": "@cubetiq/react-use-countdown",
"version": "1.10.4",
"version": "1.0.6",
"description": "Count down with trigger",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@ -23,6 +23,7 @@
"build": "tsc",
"test": "jest",
"build:test": "yarn test && yarn build",
"publish": "yarn build:test && npm publish --registry https://registry.npmjs.com",
"run:example": "cd example && yarn start"
},
"devDependencies": {

View File

@ -1,3 +1,7 @@
function sumTest() {
return 1 + 4;
}
test(`test sum with 1 + 4 -> 5`, () => {
expect(1 + 4).toBe(5);
});