CLI local dev #529
Annotations
6 errors and 1 warning
|
test
Process completed with exit code 1.
|
|
tests/core/project.spec.ts > readProjectConfig > reads project with functions and entities:
src/core/resources/function/config.ts#L47
ReferenceError: filePaths is not defined
❯ readFunction src/core/resources/function/config.ts:47:65
❯ Object.readAllFunctions [as readAll] src/core/resources/function/config.ts:63:21
❯ readProjectConfig src/core/project/config.ts:94:41
❯ tests/core/project.spec.ts:31:20
|
|
tests/cli/functions_deploy.spec.ts > functions deploy command > fails when API returns error:
src/core/resources/function/config.ts#L47
Error: Expected output to contain "Invalid function code"
stdout: ┌ Base 44
│
■ filePaths is not defined
│
└ Session: test-session | 2026-02-05T08:40:46.097Z
stderr: ReferenceError: filePaths is not defined
at readFunction (/home/runner/work/cli/cli/src/core/resources/function/config.ts:47:65)
at async Promise.all (index 0)
at Object.readAllFunctions [as readAll] (/home/runner/work/cli/cli/src/core/resources/function/config.ts:63:21)
at async Promise.all (index 1)
at readProjectConfig (/home/runner/work/cli/cli/src/core/project/config.ts:94:41)
at deployFunctionsAction (/home/runner/work/cli/cli/src/cli/commands/functions/deploy.ts:11:25)
at runCommand (/home/runner/work/cli/cli/src/cli/utils/runCommand.ts:96:30)
at Command.<anonymous> (/home/runner/work/cli/cli/src/cli/commands/functions/deploy.ts:63:11)
at Command.parseAsync (/home/runner/work/cli/cli/node_modules/commander/lib/command.js:1092:5)
at CLITestkit.run (/home/runner/work/cli/cli/tests/cli/testkit/CLITestkit.ts:144:7)
❯ readFunction src/core/resources/function/config.ts:47:65
❯ Object.readAllFunctions [as readAll] src/core/resources/function/config.ts:63:21
❯ readProjectConfig src/core/project/config.ts:94:41
❯ deployFunctionsAction src/cli/commands/functions/deploy.ts:11:25
❯ runCommand src/cli/utils/runCommand.ts:96:30
❯ Command.<anonymous> src/cli/commands/functions/deploy.ts:63:11
❯ Command.parseAsync node_modules/commander/lib/command.js:1092:5
❯ CLITestkit.run tests/cli/testkit/CLITestkit.ts:144:7
❯ CLIResultMatcher.toContain tests/cli/testkit/CLIResultMatcher.ts:38:13
❯ tests/cli/functions_deploy.spec.ts:50:28
|
|
tests/cli/functions_deploy.spec.ts > functions deploy command > deploys functions successfully:
src/core/resources/function/config.ts#L47
Error: Expected command to succeed but got exit code 1
stderr: ReferenceError: filePaths is not defined
at readFunction (/home/runner/work/cli/cli/src/core/resources/function/config.ts:47:65)
at async Promise.all (index 0)
at Object.readAllFunctions [as readAll] (/home/runner/work/cli/cli/src/core/resources/function/config.ts:63:21)
at async Promise.all (index 1)
at readProjectConfig (/home/runner/work/cli/cli/src/core/project/config.ts:94:41)
at deployFunctionsAction (/home/runner/work/cli/cli/src/cli/commands/functions/deploy.ts:11:25)
at runCommand (/home/runner/work/cli/cli/src/cli/utils/runCommand.ts:96:30)
at Command.<anonymous> (/home/runner/work/cli/cli/src/cli/commands/functions/deploy.ts:63:11)
at Command.parseAsync (/home/runner/work/cli/cli/node_modules/commander/lib/command.js:1092:5)
at CLITestkit.run (/home/runner/work/cli/cli/tests/cli/testkit/CLITestkit.ts:144:7)
❯ readFunction src/core/resources/function/config.ts:47:65
❯ Object.readAllFunctions [as readAll] src/core/resources/function/config.ts:63:21
❯ readProjectConfig src/core/project/config.ts:94:41
❯ deployFunctionsAction src/cli/commands/functions/deploy.ts:11:25
❯ runCommand src/cli/utils/runCommand.ts:96:30
❯ Command.<anonymous> src/cli/commands/functions/deploy.ts:63:11
❯ Command.parseAsync node_modules/commander/lib/command.js:1092:5
❯ CLITestkit.run tests/cli/testkit/CLITestkit.ts:144:7
❯ CLIResultMatcher.toSucceed tests/cli/testkit/CLIResultMatcher.ts:14:13
❯ tests/cli/functions_deploy.spec.ts:35:28
|
|
tests/cli/deploy.spec.ts > deploy command (unified) > deploys entities, functions, and site together:
src/core/resources/function/config.ts#L47
Error: Expected command to succeed but got exit code 1
stderr: ReferenceError: filePaths is not defined
at readFunction (/home/runner/work/cli/cli/src/core/resources/function/config.ts:47:65)
at async Promise.all (index 0)
at Object.readAllFunctions [as readAll] (/home/runner/work/cli/cli/src/core/resources/function/config.ts:63:21)
at async Promise.all (index 1)
at readProjectConfig (/home/runner/work/cli/cli/src/core/project/config.ts:94:41)
at deployAction (/home/runner/work/cli/cli/src/cli/commands/project/deploy.ts:22:23)
at runCommand (/home/runner/work/cli/cli/src/cli/utils/runCommand.ts:96:30)
at Command.<anonymous> (/home/runner/work/cli/cli/src/cli/commands/project/deploy.ts:100:7)
at Command.parseAsync (/home/runner/work/cli/cli/node_modules/commander/lib/command.js:1092:5)
at CLITestkit.run (/home/runner/work/cli/cli/tests/cli/testkit/CLITestkit.ts:144:7)
❯ readFunction src/core/resources/function/config.ts:47:65
❯ Object.readAllFunctions [as readAll] src/core/resources/function/config.ts:63:21
❯ readProjectConfig src/core/project/config.ts:94:41
❯ deployAction src/cli/commands/project/deploy.ts:22:23
❯ runCommand src/cli/utils/runCommand.ts:96:30
❯ Command.<anonymous> src/cli/commands/project/deploy.ts:100:7
❯ Command.parseAsync node_modules/commander/lib/command.js:1092:5
❯ CLITestkit.run tests/cli/testkit/CLITestkit.ts:144:7
❯ CLIResultMatcher.toSucceed tests/cli/testkit/CLIResultMatcher.ts:14:13
❯ tests/cli/deploy.spec.ts:81:28
|
|
tests/cli/deploy.spec.ts > deploy command (unified) > deploys entities and functions together:
src/core/resources/function/config.ts#L47
Error: Expected command to succeed but got exit code 1
stderr: ReferenceError: filePaths is not defined
at readFunction (/home/runner/work/cli/cli/src/core/resources/function/config.ts:47:65)
at async Promise.all (index 0)
at Object.readAllFunctions [as readAll] (/home/runner/work/cli/cli/src/core/resources/function/config.ts:63:21)
at async Promise.all (index 1)
at readProjectConfig (/home/runner/work/cli/cli/src/core/project/config.ts:94:41)
at deployAction (/home/runner/work/cli/cli/src/cli/commands/project/deploy.ts:22:23)
at runCommand (/home/runner/work/cli/cli/src/cli/utils/runCommand.ts:96:30)
at Command.<anonymous> (/home/runner/work/cli/cli/src/cli/commands/project/deploy.ts:100:7)
at Command.parseAsync (/home/runner/work/cli/cli/node_modules/commander/lib/command.js:1092:5)
at CLITestkit.run (/home/runner/work/cli/cli/tests/cli/testkit/CLITestkit.ts:144:7)
❯ readFunction src/core/resources/function/config.ts:47:65
❯ Object.readAllFunctions [as readAll] src/core/resources/function/config.ts:63:21
❯ readProjectConfig src/core/project/config.ts:94:41
❯ deployAction src/cli/commands/project/deploy.ts:22:23
❯ runCommand src/cli/utils/runCommand.ts:96:30
❯ Command.<anonymous> src/cli/commands/project/deploy.ts:100:7
❯ Command.parseAsync node_modules/commander/lib/command.js:1092:5
❯ CLITestkit.run tests/cli/testkit/CLITestkit.ts:144:7
❯ CLIResultMatcher.toSucceed tests/cli/testkit/CLIResultMatcher.ts:14:13
❯ tests/cli/deploy.spec.ts:68:28
|
|
test
Unexpected input(s) 'cache', valid inputs are ['bun-version', 'bun-version-file', 'bun-download-url', 'registries', 'registry-url', 'scope', 'no-cache', 'token']
|