Load presets using jiti #42774
Triggered via pull request
December 28, 2024 11:01
Status
Failure
Total duration
10m 52s
Artifacts
–
Annotations
10 errors
src/common/presets.test.ts > presets > loads and applies presets when they are combined in another preset:
code/core/src/common/presets.test.ts#L141
AssertionError: expected [] to deeply equal [ 'foo', 'dracarys', …(2) ]
- Expected
+ Received
- Array [
- "foo",
- "dracarys",
- "valar morghulis",
- "bar",
- ]
+ Array []
❯ src/common/presets.test.ts:141:20
|
src/common/presets.test.ts > presets > loads and applies presets when they are declared as a string:
code/core/src/common/presets.test.ts#L165
AssertionError: expected "spy" to be called at least once
❯ src/common/presets.test.ts:165:40
|
src/common/presets.test.ts > presets > loads and applies presets when they are declared as an object without props:
code/core/src/common/presets.test.ts#L192
AssertionError: expected "spy" to be called at least once
❯ src/common/presets.test.ts:192:40
|
src/common/presets.test.ts > presets > loads and applies presets when they are declared as an object with props:
code/core/src/common/presets.test.ts#L225
AssertionError: expected "spy" to be called with arguments: [ Anything, { foo: 1, …(2) } ]
Received:
Number of calls: 0
❯ src/common/presets.test.ts:225:40
|
src/common/presets.test.ts > presets > loads and applies presets when they are declared as a string and as an object:
code/core/src/common/presets.test.ts#L271
AssertionError: expected "spy" to be called at least once
❯ src/common/presets.test.ts:271:40
|
src/common/presets.test.ts > presets > applies presets in chain:
code/core/src/common/presets.test.ts#L321
AssertionError: expected "spy" to be called at least once
❯ src/common/presets.test.ts:321:40
|
src/common/presets.test.ts > presets > allows for presets to export presets array:
code/core/src/common/presets.test.ts#L348
AssertionError: expected "spy" to be called with arguments: [ undefined, Any<Object> ]
Received:
Number of calls: 0
❯ src/common/presets.test.ts:348:27
|
src/common/presets.test.ts > presets > allows for presets to export presets fn:
code/core/src/common/presets.test.ts#L375
AssertionError: expected "spy" to be called with arguments: [ { a: 1, b: 2 } ]
Received:
Number of calls: 0
❯ src/common/presets.test.ts:375:27
|
src/common/presets.test.ts > resolveAddonName > should resolve managerEntries:
code/core/src/common/presets.test.ts#L415
AssertionError: expected { type: 'virtual', …(2) } to deeply equal { …(3) }
- Expected
+ Received
Object {
"managerEntries": Array [
- "@storybook\\addon-actions\\register",
+ "@storybook/addon-actions/register",
],
"name": "@storybook/addon-actions/register.js",
"type": "virtual",
}
❯ src/common/presets.test.ts:415:85
|
src/common/presets.test.ts > resolveAddonName > should resolve managerEntries from new /manager path:
code/core/src/common/presets.test.ts#L423
AssertionError: expected { type: 'virtual', …(2) } to deeply equal { …(3) }
- Expected
+ Received
Object {
"managerEntries": Array [
- "@storybook\\addon-actions\\manager",
+ "@storybook/addon-actions/manager",
],
"name": "@storybook/addon-actions/manager",
"type": "virtual",
}
❯ src/common/presets.test.ts:423:81
|