Skip to content

fix(core/prelude/date/create): consider time for timezone calculation #1890

fix(core/prelude/date/create): consider time for timezone calculation

fix(core/prelude/date/create): consider time for timezone calculation #1890

Triggered via pull request September 9, 2024 09:32
Status Failure
Total duration 2m 46s
Artifacts 1

test.yml

on: pull_request
Matrix: build-standalone
Matrix: es5-tests
Matrix: linters
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 15 warnings
core/prelude/date/create › working with timezones › should consider a time when getting the timezone: dist/server/core/prelude/date/create/spec.js#L242
expect(received).toEqual(expected) // deep equality Expected: 1992-01-19T07:00:00.000Z Received: 1992-01-19T08:00:00.000Z at Object.<anonymous> (dist/server/core/prelude/date/create/spec.js:242:50)
es5-tests (18.x)
Process completed with exit code 1.
core/prelude/date/create › working with timezones › should consider a time when getting the timezone: dist/server/core/prelude/date/create/spec.js#L242
expect(received).toEqual(expected) // deep equality Expected: 1992-01-19T07:00:00.000Z Received: 1992-01-19T08:00:00.000Z at Object.<anonymous> (dist/server/core/prelude/date/create/spec.js:242:50)
core/request/engines/composition as request engine › a request should be made if the requestFilter promise resolves with a result of true: dist/server/core/request/engines/composition/test/engine.spec.js#L287
expect(received).toHaveLength(expected) Expected length: 1 Received length: 0 Received array: [] at Object.<anonymous> (dist/server/core/request/engines/composition/test/engine.spec.js:287:40)
core/request/engines/composition as request engine › should return an AggregateError containing errors from all requests configured with failCompositionOnError set to true: dist/server/core/request/engines/composition/test/engine.spec.js#L301
thrown: "Exceeded timeout of 20000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at dist/server/core/request/engines/composition/test/engine.spec.js:301:3 at Object.<anonymous> (dist/server/core/request/engines/composition/test/engine.spec.js:56:1)
core/request/engines/composition as request engine › should spread result if spread is specified in "as": dist/server/core/request/engines/composition/test/engine.spec.js#L335
thrown: "Exceeded timeout of 20000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at dist/server/core/request/engines/composition/test/engine.spec.js:335:3 at Object.<anonymous> (dist/server/core/request/engines/composition/test/engine.spec.js:56:1)
core/request/engines/composition as request engine › caching strategy is set to "never" › should always call the request functions: dist/server/core/request/engines/composition/test/engine.spec.js#L361
thrown: "Exceeded timeout of 20000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at dist/server/core/request/engines/composition/test/engine.spec.js:361:5 at dist/server/core/request/engines/composition/test/engine.spec.js:360:3 at Object.<anonymous> (dist/server/core/request/engines/composition/test/engine.spec.js:56:1)
core/request/engines/composition as request engine › when a request created in the request function has a cacheStrategy of "queue" › the engine should cache the request and avoid making duplicate requests: dist/server/core/request/engines/composition/test/engine.spec.js#L412
thrown: "Exceeded timeout of 20000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at dist/server/core/request/engines/composition/test/engine.spec.js:412:5 at dist/server/core/request/engines/composition/test/engine.spec.js:411:3 at Object.<anonymous> (dist/server/core/request/engines/composition/test/engine.spec.js:56:1)
core/request/engines/composition as request engine › engine destructor should trigger the destructors of all providers it created: src/core/request/engines/composition/test/engine.spec.ts#L55
Cannot use spyOn on a primitive value; undefined given at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at src/core/request/engines/composition/test/engine.spec.ts:55:15 at step (node_modules/tslib/tslib.js:143:27) at Object.next (node_modules/tslib/tslib.js:124:57) at fulfilled (node_modules/tslib/tslib.js:114:62)
core/request/engines/composition as request engine › calling dropCache on the engine should trigger dropCache on all created providers: src/core/request/index.ts#L410
RequestError: [invalidStatus] GET http://localhost:4444/json/1 500 at wrapSuccessResponse (src/core/request/index.ts:410:48) at AbortablePromise.Object.<anonymous>.AbortablePromise.call (src/core/promise/abortable/index.ts:661:11) at fulfillWrapper (src/core/promise/abortable/index.ts:531:10)
core/request/engines/composition as request engine › a request should be prevented if the requestFilter returns false: src/core/request/engines/composition/test/engine.spec.ts#L159
expect(received).toEqual(expected) // deep equality - Expected - 3 + Received + 2 Object { - "val2": Object { - "test": 2, - }, + "val1": undefined, + "val2": undefined, } at src/core/request/engines/composition/test/engine.spec.ts:159:16 at step (node_modules/tslib/tslib.js:143:27) at Object.next (node_modules/tslib/tslib.js:124:57) at fulfilled (node_modules/tslib/tslib.js:114:62)
core/request/engines/composition as request engine › a request should be delayed until the requestFilter promise resolves: src/core/request/engines/composition/test/engine.spec.ts#L186
expect(received).toHaveLength(expected) Expected length: 1 Received length: 0 Received array: [] at src/core/request/engines/composition/test/engine.spec.ts:186:38 at step (node_modules/tslib/tslib.js:143:27) at Object.next (node_modules/tslib/tslib.js:124:57) at fulfilled (node_modules/tslib/tslib.js:114:62)
linters (18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
linters (18.x): src/core/async/modules/wrappers/spec.js#L15
Do not import Node.js builtin module "events"
linters (18.x): src/core/async/modules/wrappers/spec.js#L15
`events` import should occur before import of `express`
linters (18.x): src/core/iter/index.ts#L60
This overload and the one on line 54 can be combined into one signature taking `ArrayLike<T> | GeneratorFunction`
linters (18.x): src/core/json/convert.ts#L17
Expected a default case
linters (18.x): src/core/json/convert.ts#L45
Use 'String#startsWith' method instead
linters (18.x): src/core/json/convert.ts#L48
Expected a default case
linters (18.x): src/core/object/watch/spec.js#L15
Arrow function has too many lines (1064). Maximum allowed is 400
linters (18.x): src/core/object/watch/spec.js#L22
Arrow function has too many lines (1056). Maximum allowed is 400
linters (18.x): src/core/object/watch/spec.js#L23
Arrow function has too many lines (1054). Maximum allowed is 400
linters (18.x): src/core/request/engines/composition/test/server.ts#L9
Do not import Node.js builtin module "node:http"
build-standalone (18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
es5-tests (18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
tests (18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "lib". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
lib Expired
1.09 MB