feat: support tsconfig paths and package-relative imports [sc-22644] #2217
Annotations
8 errors and 12 warnings
dependency-parser - parser() › should handle JS file with dependencies:
packages/cli/src/services/check-parser/collector.ts#L48
Encountered an error parsing check files for /home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/check-parser/__tests__/check-parser-fixtures/simple-example/entrypoint.js.
The following NPM dependencies were used, but aren't supported in the runtimes.
For more information, see https://www.checklyhq.com/docs/runtimes/.
/home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/check-parser/__tests__/check-parser-fixtures/simple-example/entrypoint.js imports unsupported dependencies:
axios
at Collector.validate (src/services/check-parser/collector.ts:48:13)
at Parser.parse (src/services/check-parser/parser.ts:165:15)
at Object.<anonymous> (src/services/check-parser/__tests__/check-parser.spec.ts:24:37)
|
dependency-parser - parser() › should report unsupported dependencies:
packages/cli/src/services/check-parser/__tests__/check-parser.spec.ts#L79
expect(received).toMatchObject(expected)
- Expected - 2
+ Received + 1
Object {
"unsupportedNpmDependencies": Array [
Object {
"file": "/home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/check-parser/__tests__/check-parser-fixtures/unsupported-dependencies.js",
"unsupportedDependencies": Array [
- "left-pad",
- "right-pad",
+ "axios",
],
},
],
}
at Object.<anonymous> (src/services/check-parser/__tests__/check-parser.spec.ts:79:19)
|
dependency-parser - parser() › should parse typescript dependencies:
packages/cli/src/services/check-parser/collector.ts#L48
Encountered an error parsing check files for /home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/check-parser/__tests__/check-parser-fixtures/typescript-example/entrypoint.ts.
The following NPM dependencies were used, but aren't supported in the runtimes.
For more information, see https://www.checklyhq.com/docs/runtimes/.
/home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/check-parser/__tests__/check-parser-fixtures/typescript-example/entrypoint.ts imports unsupported dependencies:
axios
at Collector.validate (src/services/check-parser/collector.ts:48:13)
at Parser.parse (src/services/check-parser/parser.ts:165:15)
at Object.<anonymous> (src/services/check-parser/__tests__/check-parser.spec.ts:113:37)
|
parseProject() › should parse a project with multiple glob patterns and deduplicate overlapping patterns:
packages/cli/src/services/check-parser/collector.ts#L31
Encountered an error parsing check files for /home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/__tests__/project-parser-fixtures/multiple-glob-patterns-project/__checks1__/__nested-checks__/nested.spec.js.
The following NPM dependencies were used, but aren't supported in the runtimes.
For more information, see https://www.checklyhq.com/docs/runtimes/.
/home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/__tests__/project-parser-fixtures/multiple-glob-patterns-project/__checks1__/__nested-checks__/nested.spec.js imports unsupported dependencies:
@playwright/test
at Collector.validate (src/services/check-parser/collector.ts:31:19)
at Parser.parse (src/services/check-parser/parser.ts:160:19)
at Function.bundle (src/constructs/browser-check.ts:117:31)
at new BrowserCheck (src/constructs/browser-check.ts:73:41)
at loadAllBrowserChecks (src/services/project-parser.ts:98:30)
at async parseProject (src/services/project-parser.ts:51:5)
at async Object.<anonymous> (src/services/__tests__/project-parser.spec.ts:157:25)
|
parseProject() › should parse a project with multistep & browser glob patterns:
packages/cli/src/services/check-parser/collector.ts#L31
Encountered an error parsing check files for /home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/__tests__/project-parser-fixtures/multistep-browser-glob-patterns/__checks__/browser/check2.spec.js.
The following NPM dependencies were used, but aren't supported in the runtimes.
For more information, see https://www.checklyhq.com/docs/runtimes/.
/home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/__tests__/project-parser-fixtures/multistep-browser-glob-patterns/__checks__/browser/check2.spec.js imports unsupported dependencies:
@playwright/test
at Collector.validate (src/services/check-parser/collector.ts:31:19)
at Parser.parse (src/services/check-parser/parser.ts:160:19)
at Function.bundle (src/constructs/browser-check.ts:117:31)
at new BrowserCheck (src/constructs/browser-check.ts:73:41)
at loadAllBrowserChecks (src/services/project-parser.ts:98:30)
at async parseProject (src/services/project-parser.ts:51:5)
at async Object.<anonymous> (src/services/__tests__/project-parser.spec.ts:218:25)
|
test - ubuntu-latest
Process completed with exit code 1.
|
test - windows-latest
The job was canceled because "ubuntu-latest" failed.
|
test - windows-latest
The operation was canceled.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint:
packages/cli/e2e/__tests__/fixtures/deploy-esm-project/api.check.mjs#L3
'api' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/esm-module/checks.check.ts#L3
'browserCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/snapshot-project-missing-snapshots/checkly.config.ts#L5
Forbidden non-null assertion
|
lint:
packages/cli/e2e/__tests__/fixtures/snapshot-project/checkly.config.ts#L5
Forbidden non-null assertion
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/__checks__/group.check.ts#L22
'browserCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/__checks__/heartbeat.check.ts#L3
'heartbeat' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/__checks__/secret.check.ts#L3
'browserCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/services/api/api.check.ts#L4
'apiCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/services/api/api.check.ts#L25
'skipSslApiCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/services/api/typo.checkz.ts#L3
'apiCheck' is assigned a value but never used
|
test - ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|