Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

### Changed

### Removed

## [1.5.0] - 2021-10-27

### Added

- `getRootPath`
- `isPackageInstalled`

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@techmmunity/utils",
"version": "1.0.0",
"version": "1.5.0",
"main": "index.js",
"types": "index.d.ts",
"license": "Apache-2.0",
Expand All @@ -26,10 +26,10 @@
"empty-object"
],
"devDependencies": {
"@techmmunity/eslint-config": "^5.0.4",
"@techmmunity/eslint-config": "^5.1.2",
"@types/jest": "^27.0.2",
"@vercel/ncc": "^0.31.1",
"eslint": "^7.32.0",
"eslint": "^8.1.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"lint-staged": "^11.2.3",
Expand All @@ -48,6 +48,7 @@
"lint": "eslint . --quiet",
"upgrade-dependencies": "yarn upgrade-interactive --latest",
"husky:pre-commit": "tsc",
"lk": "yarn build && cp package.json dist/package.json && cd dist && yarn link && cd .."
"lk": "yarn build && cp package.json dist/package.json && cd dist && yarn link && cd ..",
"ulk": "yarn unlink && yarn lk"
}
}
4 changes: 2 additions & 2 deletions src/tests/sleep.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("sleep", () => {
const offset = timeAfter - timeBefore;

// Cannot test the exact time, so test a range
expect(isBetween(offset, 1000, 1010)).toBeTruthy();
expect(isBetween(offset, 1000, 1050)).toBeTruthy();
});

it("with 10 seconds", async () => {
Expand All @@ -31,6 +31,6 @@ describe("sleep", () => {
const offset = timeAfter - timeBefore;

// Cannot test the exact time, so test a range
expect(isBetween(offset, 10000, 10010)).toBeTruthy();
expect(isBetween(offset, 10000, 10050)).toBeTruthy();
});
});
Loading