afs commented on PR #2574:
URL: https://github.com/apache/jena/pull/2574#issuecomment-2220245478
This one doesn't run if run within jena-fuseki-ui: I've changed the PR to
"draft" and I'll experiment further in a full build.
```
[INFO] --- frontend:1.15.0:yarn (yarn run test:unit) @ jena-fuseki-ui ---
[INFO] Running 'yarn run test:unit' in
/home/afs/ASF/jena-review/jena-fuseki2/jena-fuseki-ui
[INFO] yarn run v1.22.17
[INFO] $ vitest run --environment jsdom
[INFO]
[INFO] RUN v2.0.1 /home/afs/ASF/jena-review/jena-fuseki2/jena-fuseki-ui
[INFO]
[INFO] ✓ tests/unit/utils/query.spec.js (1 test) 4ms
[INFO] ✓ tests/unit/services/fuseki.service.spec.js (20 tests) 31ms
[INFO] ✓ tests/unit/components/dataset/tablelisting.vue.spec.js (2 tests)
39ms
[INFO] ✓ tests/unit/components/serverstatus.vue.spec.js (3 tests) 35ms
[INFO] ✓ tests/unit/components/dataset/pagination.vue.spec.js (4 tests)
72ms
[INFO] ❯ tests/unit/views/dataset/query.vue.spec.js (1 test | 1 failed) 5ms
[INFO] × Query view > is created with the correct initial values
[INFO] → vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in
node:child_process. Use --pool=threads if mocking nextTick is required.
[INFO]
[INFO] ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
[INFO]
[INFO] FAIL tests/unit/views/dataset/query.vue.spec.js > Query view > is
created with the correct initial values
[INFO] Error: vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in
node:child_process. Use --pool=threads if mocking nextTick is required.
[INFO] ❯ tests/unit/views/dataset/query.vue.spec.js:59:8
[INFO] 57| document.body.append(yasqeDiv)
[INFO] 58| // we will have to mock setTimeout and nextTick at
least, for the …
[INFO] 59| vi.useFakeTimers({
[INFO] | ^
[INFO] 60| toFake: [
[INFO] 61| 'Date',
[INFO]
[INFO] ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
[INFO]
[INFO] Test Files 1 failed | 5 passed (6)
[INFO] Tests 1 failed | 30 passed (31)
[INFO] Start at 11:33:15
[INFO] Duration 1.18s (transform 402ms, setup 0ms, collect 1.12s, tests
186ms, environment 1.74s, prepare 543ms)
[INFO]
[INFO] error Command failed with exit code 1.
[INFO] error Command failed with exit code 1.info Visit
https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]