Initial work for config cat plugin #205
Annotations
6 errors and 1 warning
packages/plugin-config-cat/test/config-cat-plugin.test.ts > configCatPlugin > should throw an error if the sdk key is not set:
packages/plugin-config-cat/test/config-cat-plugin.test.ts#L48
AssertionError: expected [Function] to throw error including 'Config value: CONFIG_CAT_SDK_KEY is r…' but got '[\n {\n "code": "invalid_return_t…'
- Expected
+ Received
- Config value: CONFIG_CAT_SDK_KEY is required to be configured before loading this plugin.
+ [
+ {
+ "code": "invalid_return_type",
+ "returnTypeError": {
+ "issues": [
+ {
+ "code": "invalid_type",
+ "expected": "boolean",
+ "received": "undefined",
+ "path": [],
+ "message": "Required"
+ }
+ ],
+ "name": "ZodError"
+ },
+ "path": [
+ "plugins",
+ 0,
+ "isInitialized"
+ ],
+ "message": "Invalid function return type"
+ }
+ ]
❯ packages/plugin-config-cat/test/config-cat-plugin.test.ts:48:5
|
packages/plugin-config-cat/test/config-cat-plugin.test.ts > configCatPlugin > should load config:
packages/config-dug/src/config-dug.ts#L240
ZodError: [
{
"code": "invalid_return_type",
"returnTypeError": {
"issues": [
{
"code": "invalid_type",
"expected": "boolean",
"received": "undefined",
"path": [],
"message": "Required"
}
],
"name": "ZodError"
},
"path": [
"plugins",
0,
"isInitialized"
],
"message": "Invalid function return type"
}
]
❯ Object.<anonymous> node_modules/zod/lib/index.mjs:3374:27
❯ Object.isInitialized node_modules/zod/lib/index.mjs:3371:40
❯ ConfigDug.loadPlugins packages/config-dug/src/config-dug.ts:240:19
❯ ConfigDug.loadConfig packages/config-dug/src/config-dug.ts:160:22
❯ ConfigDug.load packages/config-dug/src/config-dug.ts:134:5
❯ packages/plugin-config-cat/test/config-cat-plugin.test.ts:91:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:587:31)\n at Object.<anonymous> (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3374:80)\n at Object.isInitialized (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3371:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-config-cat/test/config-cat-plugin.test.ts:91:5\n at file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:533:5\n at runTest (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1056:11)\n at runSuite (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1205:15)', issues: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', name: 'ZodError', constructor: 'Function<ZodError>', errors: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], format: 'Function<format>', toString: 'Function<toString>', message: '[\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [ 'Required' ], fieldErrors: {} } }, path: [ 'plugins', +0, 'isInitialized' ], message: 'Invalid function return type' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:587:31)\n at Object.<anonymous> (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3374:80)\n at Object.isInitialized (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3371:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-config-cat/test/config-cat-plugin.test.ts
|
packages/plugin-config-cat/test/config-cat-plugin.test.ts > configCatPlugin > should properly overwrite targeted flag functions:
packages/config-dug/src/config-dug.ts#L240
ZodError: [
{
"code": "invalid_return_type",
"returnTypeError": {
"issues": [
{
"code": "invalid_type",
"expected": "boolean",
"received": "undefined",
"path": [],
"message": "Required"
}
],
"name": "ZodError"
},
"path": [
"plugins",
0,
"isInitialized"
],
"message": "Invalid function return type"
}
]
❯ Object.<anonymous> node_modules/zod/lib/index.mjs:3374:27
❯ Object.isInitialized node_modules/zod/lib/index.mjs:3371:40
❯ ConfigDug.loadPlugins packages/config-dug/src/config-dug.ts:240:19
❯ ConfigDug.loadConfig packages/config-dug/src/config-dug.ts:160:22
❯ ConfigDug.load packages/config-dug/src/config-dug.ts:134:5
❯ packages/plugin-config-cat/test/config-cat-plugin.test.ts:150:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:587:31)\n at Object.<anonymous> (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3374:80)\n at Object.isInitialized (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3371:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-config-cat/test/config-cat-plugin.test.ts:150:5\n at file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:533:5\n at runTest (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1056:11)\n at runSuite (file:///home/runner/work/config-dug/config-dug/node_modules/@vitest/runner/dist/index.js:1205:15)', issues: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', name: 'ZodError', constructor: 'Function<ZodError>', errors: [ { code: 'invalid_type', expected: 'boolean', received: 'undefined', path: [], message: 'Required' } ], format: 'Function<format>', toString: 'Function<toString>', message: '[\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [ 'Required' ], fieldErrors: {} } }, path: [ 'plugins', +0, 'isInitialized' ], message: 'Invalid function return type' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_return_type', returnTypeError: { stack: 'ZodError: [\n {\n "code": "invalid_type",\n "expected": "boolean",\n "received": "undefined",\n "path": [],\n "message": "Required"\n }\n]\n at Object.get error [as error] (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:587:31)\n at Object.<anonymous> (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3374:80)\n at Object.isInitialized (file:///home/runner/work/config-dug/config-dug/node_modules/zod/lib/index.mjs:3371:40)\n at ConfigDug.loadPlugins (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:240:19)\n at ConfigDug.loadConfig (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:160:22)\n at ConfigDug.load (/home/runner/work/config-dug/config-dug/packages/config-dug/src/config-dug.ts:134:5)\n at /home/runner/work/config-dug/config-dug/packages/plugin-config-cat/test/config-cat-plugin.test.
|
build (20)
Process completed with exit code 1.
|
build (18)
The job was canceled because "_20" failed.
|
build (18)
The operation was canceled.
|
build (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|