diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e5bb05e..6830857 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,8 @@ on: push: tags: - '*' + schedule: + - cron: 0 11 * * * jobs: lint: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c91ccc..e2cd38c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ ## v2.0.10 * (668b957) Create codeql-analysis.yml (#25) (Denis Tokarev) * (8b06c25) Update CI to publish only when integration tests has passed (#26) (github-actions[bot]) -* (5db0cad) Bump version to 2.0.10 (Denis Tokarev) +* (af4e364) Bump version to 2.0.10 (Denis Tokarev) +* (ac4486b) Update the project changelog (github-actions[bot]) +* (27ef151) Fix tests (Denis Tokarev) ## v2.0.9 * (a999686) Upgrade all deps and prepare v2.0.9 (Denis Tokarev) @@ -42,7 +44,37 @@ * (38ebf94) Further get rid of global variables (#11) (Denis Tokarev) ## v2.0.2 + +## v2.0.10 * (8aa1f79) Fix issue w/wrong setTimeout call (#10) (github-actions[bot]) +* (a1cc16f) Further get rid of global variables (Denis Tokarev) +* (38ebf94) Further get rid of global variables (#11) (Denis Tokarev) +* (16cbe84) Update README -> 2.0.4 (#12) (github-actions[bot]) +* (0ae085e) Disable secret scan (#13) (github-actions[bot]) +* (bfea826) Fix #14 (Denis Tokarev) +* (f6397ea) Increase allowed complexity (Denis Tokarev) +* (2ef43fa) Fix #16: add 'module' to package.json, manually fix dependabot alerts (#17) (github-actions[bot]) +* (43d46df) Update README (#18) (github-actions[bot]) +* (dbf7cdf) Aaa (Denis Tokarev) +* (2a51437) Fix timeout default value in README (#20) (Simon Smith) +* (7c72d54) Upgrade automerge action (Denis Tokarev) +* (5b1fa8f) Fix workflows (Denis Tokarev) +* (ef0219c) GH_PAT -> GITHUB_TOKEN (Denis Tokarev) +* (7e7178d) Adjust spelling in readme and index (#21) (Lukasz Kokot) +* (a999686) Upgrade all deps and prepare v2.0.9 (Denis Tokarev) +* (7763e70) Update scripts (Denis Tokarev) +* (d151065) Fix (Denis Tokarev) +* (87d3f35) Update codeclimate config (Denis Tokarev) +* (208bd20) Update codeclimate config (Denis Tokarev) +* (71f8658) Update the CI configuration to properly set PR bodies (Denis Tokarev) +* (154f35e) Set test timeout to 10s (Denis Tokarev) +* (d47ce0c) Update auto-labeling (Denis Tokarev) +* (8641a51) Add re-labeling (Denis Tokarev) +* (4d3d2cc) Auto-release and auto-publish daily when possible (#24) (github-actions[bot]) +* (668b957) Create codeql-analysis.yml (#25) (Denis Tokarev) +* (8b06c25) Update CI to publish only when integration tests has passed (#26) (github-actions[bot]) +* (af4e364) Bump version to 2.0.10 (Denis Tokarev) +* (ac4486b) Update the project changelog (github-actions[bot]) ## v2.0.1 * (b03c05c) Set theme jekyll-theme-slate (Denis Tokarev) diff --git a/package-lock.json b/package-lock.json index 70b0f02..9fc26ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "async-wait-until", - "version": "2.0.9", + "version": "2.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "async-wait-until", - "version": "2.0.9", + "version": "2.0.10", "license": "MIT", "devDependencies": { "@babel/core": "^7.16.0", @@ -8457,9 +8457,9 @@ "dev": true }, "node_modules/json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", "dev": true }, "node_modules/json-schema-traverse": { @@ -8502,16 +8502,18 @@ "dev": true }, "node_modules/jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dev": true, - "engines": ["node >=0.6.0"], "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" } }, "node_modules/jsx-ast-utils": { @@ -17921,9 +17923,9 @@ "dev": true }, "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", "dev": true }, "json-schema-traverse": { @@ -17960,14 +17962,14 @@ "dev": true }, "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" } }, diff --git a/src/utils/create_tests.ts b/src/utils/create_tests.ts index cc50a9d..4faf049 100644 --- a/src/utils/create_tests.ts +++ b/src/utils/create_tests.ts @@ -183,7 +183,7 @@ export const createTests = ({ const initialTime = Date.now(); const predicate = jest.fn(() => (Date.now() - initialTime > 1000 ? { a: 10, b: 20 } : false)); expect(predicate).not.toHaveBeenCalled(); - const result = await waitUntil(predicate, 1500, 500); + const result = await waitUntil(predicate, 2000, 500); expect(predicate.mock.calls.length < Math.floor(1500 / DEFAULT_INTERVAL_BETWEEN_ATTEMPTS_IN_MS) - 1).toBe(true); expect(result).toEqual({ a: 10, b: 20 });