Skip to content

fix(typedef): type enhance #184

fix(typedef): type enhance

fix(typedef): type enhance #184

Triggered via push February 2, 2024 08:31
Status Failure
Total duration 18s
Artifacts

deploy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
error: expect(received).toMatchSnapshot(expected): nodepkg/typedef/src/encoding/__tests__/index.spec.ts#L77
Expected: " export const TypeSchema = /*#__PURE__*/t.intersection(t.object({ "strOrInt": t.ref("StrOrInt", () => StrOrIntSchema).annotate({ description: "StrOrInt" }), "placement": t.enums(["leading", "trailing"]), "inputType": t.ref("InputType", () => InputTypeSchema).optional(), "keyValues": t.record(t.string(), t.any()).optional(), "array": t.array(t.boolean()), "point": t.tuple([t.number(), t.number()]), }), t.discriminatorMapping("type", { "text": t.object(), "select": t.object({ "options": t.array(t.object({ "label": t.string(), "value": t.string(), })), }) })) export const StrOrIntSchema = /*#__PURE__*/t.union(t.string(), t.integer()) export const InputTypeSchema = /*#__PURE__*/t.nativeEnum(InputType)" Received: " export const TypeSchema = /*#__PURE__*/t.intersection(t.object({ "strOrInt": t.ref("StrOrInt", () => StrOrIntSchema).use(t.annotate({ description: "StrOrInt" })), "placement": t.enums(["leading", "trailing"]), "inputType": t.ref("InputType", () => InputTypeSchema).optional(), "keyValues": t.record(t.string(), t.any()).optional(), "array": t.array(t.boolean()), "point": t.tuple([t.number(), t.number()]), }), t.discriminatorMapping("type", { "text": t.object(), "select": t.object({ "options": t.array(t.object({ "label": t.string(), "value": t.string(), })), }) })) export const StrOrIntSchema = /*#__PURE__*/t.union(t.string(), t.integer()) export const InputTypeSchema = /*#__PURE__*/t.nativeEnum(InputType)" at /home/runner/work/vuekit/vuekit/nodepkg/typedef/src/encoding/__tests__/index.spec.ts:77:9
deploy
Process completed with exit code 2.
deploy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.