Skip to content

refactor: Use prettier to format Story children raw source slices #31

refactor: Use prettier to format Story children raw source slices

refactor: Use prettier to format Story children raw source slices #31

Triggered via push June 6, 2024 14:38
Status Failure
Total duration 31s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Unhandled error: node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs#L16616
TypeError: The "path" argument must be of type string or an instance of URL. Received an instance of URL ❯ getPackageScopeConfig node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:16616:33 ❯ packageResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17355:25 ❯ moduleResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17440:18 ❯ defaultResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17531:16 ❯ resolve2 node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17548:12 ❯ importFromFile node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17563:16 ❯ importFromDirectory node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22504:10 ❯ importPlugin node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22516:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "src/parser/analyse/Story/children.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs#L16616
TypeError: The "path" argument must be of type string or an instance of URL. Received an instance of URL ❯ getPackageScopeConfig node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:16616:33 ❯ packageResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17355:25 ❯ moduleResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17440:18 ❯ defaultResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17531:16 ❯ resolve2 node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17548:12 ❯ importFromFile node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17563:16 ❯ importFromDirectory node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22504:10 ❯ importPlugin node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22516:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "src/parser/analyse/Story/children.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs#L16616
TypeError: The "path" argument must be of type string or an instance of URL. Received an instance of URL ❯ getPackageScopeConfig node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:16616:33 ❯ packageResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17355:25 ❯ moduleResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17440:18 ❯ defaultResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17531:16 ❯ resolve2 node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17548:12 ❯ importFromFile node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17563:16 ❯ importFromDirectory node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22504:10 ❯ importPlugin node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22516:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "src/parser/analyse/Story/children.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs#L16616
TypeError: The "path" argument must be of type string or an instance of URL. Received an instance of URL ❯ getPackageScopeConfig node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:16616:33 ❯ packageResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17355:25 ❯ moduleResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17440:18 ❯ defaultResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17531:16 ❯ resolve2 node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17548:12 ❯ importFromFile node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17563:16 ❯ importFromDirectory node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22504:10 ❯ importPlugin node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22516:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "src/parser/analyse/Story/children.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs#L16616
TypeError: The "path" argument must be of type string or an instance of URL. Received an instance of URL ❯ getPackageScopeConfig node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:16616:33 ❯ packageResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17355:25 ❯ moduleResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17440:18 ❯ defaultResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17531:16 ❯ resolve2 node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17548:12 ❯ importFromFile node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17563:16 ❯ importFromDirectory node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22504:10 ❯ importPlugin node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22516:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "src/parser/analyse/Story/children.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs#L16616
TypeError: The "path" argument must be of type string or an instance of URL. Received an instance of URL ❯ getPackageScopeConfig node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:16616:33 ❯ packageResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17355:25 ❯ moduleResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17440:18 ❯ defaultResolve node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17531:16 ❯ resolve2 node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17548:12 ❯ importFromFile node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:17563:16 ❯ importFromDirectory node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22504:10 ❯ importPlugin node_modules/.pnpm/prettier@3.3.1/node_modules/prettier/index.mjs:22516:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "src/parser/analyse/Story/children.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
src/parser/analyse/Story/children.test.ts > getStoryChildrenRawSource > When a `<Story />` is a self-closing tag... > works when `children` attribute was provided with a reference to snippet at the root of fragment: src/parser/analyse/Story/children.test.ts#L40
AssertionError: expected Promise{…} to be '<SomeComponent {...args} />' // Object.is equality - Expected: "<SomeComponent {...args} />" + Received: Promise {} ❯ src/parser/analyse/Story/children.test.ts:40:25
src/parser/analyse/Story/children.test.ts > getStoryChildrenRawSource > When a `<Story />` is a self-closing tag... > works when `setTemplate` was used correctly in the instance tag: src/parser/analyse/Story/children.test.ts#L75
AssertionError: expected Promise{…} to be '<SomeComponent {...args} />' // Object.is equality - Expected: "<SomeComponent {...args} />" + Received: Promise {} ❯ src/parser/analyse/Story/children.test.ts:75:25
src/parser/analyse/Story/children.test.ts > getStoryChildrenRawSource > When a `<Story />` is a self-closing tag... > works implicit `children` attribute takes precedence over `setTemplate`: src/parser/analyse/Story/children.test.ts#L116
AssertionError: expected Promise{…} to be '<SomeComponent wins="childrenAttribut…' // Object.is equality - Expected: "<SomeComponent wins=\"childrenAttribute\" {...args} />" + Received: Promise {} ❯ src/parser/analyse/Story/children.test.ts:116:25
src/parser/analyse/Story/children.test.ts > getStoryChildrenRawSource > When a `<Story />` is a self-closing tag... > works when no `setTemplate`, no `children` attribute, just a story: src/parser/analyse/Story/children.test.ts#L143
AssertionError: expected Promise{…} to be '<SampleComponent {...args} />' // Object.is equality - Expected: "<SampleComponent {...args} />" + Received: Promise {} ❯ src/parser/analyse/Story/children.test.ts:143:25