Skip to content

feat(sdk): added support for services #23

feat(sdk): added support for services

feat(sdk): added support for services #23

Triggered via pull request July 18, 2024 12:44
Status Failure
Total duration 24s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/test/events.test.ts > Events SDK > rmEventById > if version is given, only removes that version and not any other versions of the event: src/test/events.test.ts#L227
AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ src/test/events.test.ts:227:110
src/test/events.test.ts > Events SDK > versionEvent > adds the given event to the versioned directory and all files that are associated to it: src/events.ts#L169
Error: ENOENT: no such file or directory, open '/home/runner/work/sdk/sdk/src/test/catalog/events/InventoryAdjusted/index.md' ❯ Function.matter.read node_modules/.pnpm/[email protected]/node_modules/gray-matter/index.js:179:18 ❯ src/events.ts:169:55 ❯ src/test/events.test.ts:268:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, syscall: 'open', code: 'ENOENT', path: '/home/runner/work/sdk/sdk/src/test/catalog/events/InventoryAdjusted/index.md' }
src/test/events.test.ts > Events SDK > addFileToEvent > takes a given file and version and writes the file to the correct location: src/events.ts#L163
Error: No event found with id: InventoryAdjusted ❯ src/events.ts:163:11 ❯ src/test/events.test.ts:309:7
src/test/services.test.ts > Services SDK > versionService > adds the given service to the versioned directory and removes itself from the root: src/services.ts#L119
Error: ENOENT: no such file or directory, open '/home/runner/work/sdk/sdk/src/test/catalog/services/InventoryService/index.md' ❯ Function.matter.read node_modules/.pnpm/[email protected]/node_modules/gray-matter/index.js:179:18 ❯ src/services.ts:119:55 ❯ src/test/services.test.ts:161:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, syscall: 'open', code: 'ENOENT', path: '/home/runner/work/sdk/sdk/src/test/catalog/services/InventoryService/index.md' }
src/test/services.test.ts > Services SDK > versionService > adds the given service to the versioned directory and all files that are associated to it: src/test/services.test.ts#L18
Error: ENOTEMPTY: directory not empty, rmdir '/home/runner/work/sdk/sdk/src/test/catalog' ❯ src/test/services.test.ts:18:6 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -39, syscall: 'rmdir', code: 'ENOTEMPTY', path: '/home/runner/work/sdk/sdk/src/test/catalog' }
src/test/services.test.ts > Services SDK > rmServiceById > removes a service from eventcatalog by id and version: src/services.ts#L183
Error: No service found with id: InventoryService ❯ src/services.ts:183:11 ❯ src/test/services.test.ts:233:7
src/test/services.test.ts > Services SDK > rmServiceById > if version is given, only removes that version and not any other versions of the service: src/test/services.test.ts#L260
AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ src/test/services.test.ts:260:111
src/test/services.test.ts > Services SDK > addFileToService > takes a given file and writes it to the location of the given service: src/services.ts#L211
Error: Cannot find directory to write file to ❯ src/services.ts:211:29 ❯ src/test/services.test.ts:282:7
src/test/services.test.ts > Services SDK > addFileToService > takes a given file and version and writes the file to the correct location: src/test/services.test.ts#L18
Error: ENOTEMPTY: directory not empty, rmdir '/home/runner/work/sdk/sdk/src/test/catalog' ❯ src/test/services.test.ts:18:6 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -39, syscall: 'rmdir', code: 'ENOTEMPTY', path: '/home/runner/work/sdk/sdk/src/test/catalog' }
Tests
Process completed with exit code 1.