Skip to content

test CI checks

test CI checks #11

Triggered via pull request November 19, 2024 16:07
Status Failure
Total duration 1m 17s
Artifacts

ci.yml

on: pull_request
πŸ’… Format
9s
πŸ’… Format
πŸ•΅ Lint
52s
πŸ•΅ Lint
βœ… Typecheck
7s
βœ… Typecheck
πŸ§ͺ Test
47s
πŸ§ͺ Test
🧰 Build
8s
🧰 Build
Fit to window
Zoom out
Zoom in

Annotations

7 errors
βœ… Typecheck
Process completed with exit code 2.
🧰 Build
Process completed with exit code 1.
src/index.test.ts > createCustomEvent > should create a custom event and allow dispatching it: src/index.ts#L30
ReferenceError: DOCUMENT is not defined ❯ Function.dispatch src/index.ts:30:5 ❯ src/index.test.ts:25:22 ❯ Proxy.act node_modules/react/cjs/react.development.js:2512:16 ❯ src/index.test.ts:24:5
src/index.test.ts > useCustomEventListener > should call the listener when the event is triggered: src/index.test.ts#L59
AssertionError: expected "spy" to be called with arguments: [ 'test payload' ] Received: Number of calls: 0 ❯ src/index.test.ts:59:22
src/index.test.ts > useCustomEventListener > should call onStartListening and onStopListening callbacks: src/index.test.ts#L104
AssertionError: expected "spy" to be called at least once ❯ src/index.test.ts:104:29
src/index.test.ts > useCustomEventListener > should react to dependency changes: src/index.test.ts#L131
AssertionError: expected "spy" to be called at least once ❯ src/index.test.ts:131:22
πŸ§ͺ Test
Process completed with exit code 1.